/user/admin
Exports the admin view method for the /api/user/admin route.
- Source
Methods
(inner) admin(req, res)
The admin function checks whether the request parameter user has admin priviliges before returnig the View API with the admin view as template.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req | Object | HTTP request. | ||||||||||||
res | Object | HTTP response. | ||||||||||||
req.params | Object | Request parameter. Properties
|
- Source