new CommentController()
Create a CommentController.
Methods
(async, static) commentCreatePost(req, res)
Create a new Comment resource.
Parameters:
Name | Type | Description |
---|---|---|
req |
Request | The HTTP request. |
res |
Response | The HTTP response object . |
(async, static) commentDestroyDelete(req, res)
Remove the specified Comment resource.
Parameters:
Name | Type | Description |
---|---|---|
req |
Request | The HTTP request. |
res |
Response | The HTTP response object . |
(async, static) commentEditGet(req, res)
Show to the form for editing the specified Comment resource.
Parameters:
Name | Type | Description |
---|---|---|
req |
Request | The HTTP request. |
res |
Response | The HTTP response object . |
(async, static) commentNewGet(req, res)
Show the form for creating a new Comment resource.
Parameters:
Name | Type | Description |
---|---|---|
req |
Request | The HTTP request. |
res |
Response | The HTTP response object . |
(async, static) commentUpdatePut(req, res)
Update the specified Comment resource.
Parameters:
Name | Type | Description |
---|---|---|
req |
Request | The HTTP request. |
res |
Response | The HTTP response object . |