ASP4x-Router
view release on metacpan or search on metacpan
t/conf/asp4-config.json view on Meta::CPAN
{
"uri_match": ".*",
"class": "ASP4x::Router"
}
],
"disable_persistence": [
{
"uri_match": "/.*",
"disable_session": true
}
],
"routes": [
{
"include_routes": "@ServerRoot@/conf/routes.json"
},
{
"name": "CreatePage",
"path": "/main/:type/create",
"target": "/pages/create.asp",
"method": "GET"
},
{
"name": "Create",
"path": "/main/:type/create",
"target": [ "/handlers/dev.[:type:].create", "/handlers/dev.create" ],
"method": "POST"
},
{
"name": "View",
"path": "/main/:type/{id:\\d+}",
"target": "/pages/view.asp",
"method": "*"
},
{
"name": "EditPage",
"path": "/main/:type/{id:\\d+}/edit",
"target": "/pages/edit.asp",
"method": "GET"
},
{
"name": "Edit",
"path": "/main/:type/{id:\\d+}/edit",
"target": "/handlers/dev.edit",
"method": "POST"
},
{
"name": "List",
"path": "/main/:type/list/{page:\\d*}",
"target": "/pages/list.asp",
"method": "*",
"defaults": { "page": 1 }
},
{
"name": "Delete",
"path": "/main/:type/{id:\\d+}/delete",
"target": "/handlers/dev.delete",
"method": "POST"
}
]
},
"data_connections": {
"session": {
"manager": "ASP4::SessionStateManager::NonPersisted",
"cookie_name": "session-id",
"cookie_domain": "*",
"session_timeout": 30,
"dsn": "",
"username": "",
"password": ""
},
"main": {
"dsn": "",
"username": "",
"password": ""
}
}
}
( run in 0.769 second using v1.01-cache-2.11-cpan-677af5a14d3 )