json-routing
Version:
JSON configurable MVC routing for express 4
37 lines • 642 B
JSON
{
"/": {
"GET": {
"route": "index"
},
"POST": {
"route": "postfunction"
}
},
"/noroute": {
"GET": {}
},
"/hasmiddleware": {
"GET": {
"route": "hasmiddleware",
"policy": [
"mdlwtest:mdlw_a"
]
},
"POST": {
"route": "hasmiddleware",
"policy": "mdlwtest:mdlw_a"
}
},
"/customMiddlewarePath": {
"GET": {
"route": "hasmiddleware",
"policy": "./api/policycustom/custom:customMdlw"
}
},
"/customControllerPath": {
"GET": {
"route": "hasmiddleware",
"policy": "./api/controllers/custom:customMethod"
}
}
}