Methods
(async, static) checkCampgroundOwnership(req, res, next)
Checks if the current user owns a specified Campground resource.
Parameters:
Name | Type | Description |
---|---|---|
req |
Request | The HTTP request. |
res |
Response | The HTTP response object. |
next |
function | The next middleware function. |
- Source:
(async, static) checkCommentOwnership(req, res, next)
Checks if the current user owns a specified Comment resource.
Parameters:
Name | Type | Description |
---|---|---|
req |
Request | The HTTP request. |
res |
Response | The HTTP response object. |
next |
function | The next middleware function. |
- Source:
(async, static) checkUserOwnership(req, res, next)
Checks if the current user owns a specified User resource.
Parameters:
Name | Type | Description |
---|---|---|
req |
Request | The HTTP request. |
res |
Response | The HTTP response object. |
next |
function | The next middleware function. |
- Source:
(async, static) isLoggedIn(req, res, next)
Checks if the current user is logged in.
Parameters:
Name | Type | Description |
---|---|---|
req |
Request | The HTTP request. |
res |
Response | The HTTP response object. |
next |
function | The next middleware function. |
- Source: