annotate framework/env/request/router.lua @ 219:db106eb273ea
Simplified autoloader in mcp.lua
| author |
jbe |
| date |
Sun Feb 22 13:42:48 2015 +0100 (2015-02-22) |
| parents |
fd0360594636 |
| children |
|
| rev |
line source |
|
jbe@215
|
1 --[[--
|
|
jbe@216
|
2 route =
|
|
jbe@215
|
3 request.router()
|
|
jbe@215
|
4
|
|
jbe@216
|
5 Returns a table with routing information for a request. The table contains the mandatory field "module", one of "view" or "action", and may contain the optional fields "id" and "suffix". This function may be overwritten by an application and calls request.default_router(request.get_path()) in its default implementation.
|
|
jbe@215
|
6
|
|
jbe@215
|
7 --]]--
|
|
jbe@215
|
8
|
|
jbe@215
|
9 function request.router()
|
|
jbe@216
|
10 return (request.default_router(request.get_path()))
|
|
jbe@215
|
11 end
|
|
jbe@215
|
12
|
|
jbe@215
|
13 --//--
|