UNPKG
mustbe
Version:
latest (0.4.0)
0.4.0
0.3.1
0.3.0
0.2.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Authorization plumbing for Node+Express apps
github.com/derickbailey/mustbe
derickbailey/mustbe
mustbe
/
mustbe
/
config
/
parameter-map.js
14 lines
(10 loc)
•
239 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function
ParameterMap
(
){
this
.
maps
= {}; }
ParameterMap
.
prototype
.
getMaps
=
function
(
){
return
this
.
maps
; };
ParameterMap
.
prototype
.
map
=
function
(
activity, mapper
){
this
.
maps
[activity] = mapper; };
module
.
exports
=
ParameterMap
;