assets
page router overload definitions
- Source:
Namespaces
Members
(static, constant) express
The Express module import
Properties:
Name | Type | Description |
---|---|---|
express |
Object | the express object |
- Source:
(static, constant) param
- Source:
(static, constant) roads
This page.assets
special router import
Properties:
Name | Type | Description |
---|---|---|
roads |
Object | see .. |
- Source:
(static, constant) router
The Express router module import
Properties:
Name | Type | Description |
---|---|---|
router |
Object | the express.Router object |
- Source:
(static, constant) User
User mongoose schemas import
- Source:
Methods
(static) setpagecontent(req, pageparam, dbr) → {Promise}
Take the req original url and make it match with the right methods
in module:router
Parameters:
Name | Type | Description |
---|---|---|
req |
string | the requested route / methods |
pageparam |
Object | a copy of the original page template engine vars |
dbr |
Object | the user data to strip |
Properties:
Name | Type | Description |
---|---|---|
res |
Object | used to carry the roads component methods and vars |
- Source:
Returns:
the requested page /content or 'nope' string if any
- Type
- Promise