mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
ease comment endpoint
This commit is contained in:
parent
9cfb974c27
commit
a005aa0f97
@ -26,7 +26,7 @@ class CommentController extends EmailsController {
|
||||
|
||||
/**
|
||||
* @Get(
|
||||
* path = "/poll/{id}/comments",
|
||||
* path = "/poll/{id}",
|
||||
* name = "get_poll_comment",
|
||||
* requirements = {"id"="\d+"}
|
||||
* )
|
||||
@ -53,7 +53,7 @@ class CommentController extends EmailsController {
|
||||
/**
|
||||
* add a comment on a poll
|
||||
* @Post(
|
||||
* path = "/poll/{id}/comment",
|
||||
* path = "/poll/{id}",
|
||||
* name = "new_comment",
|
||||
* requirements = {"content"="\w+", "id"="\d+"}
|
||||
* )
|
||||
@ -146,7 +146,7 @@ class CommentController extends EmailsController {
|
||||
/**
|
||||
* Erase all comments of a poll
|
||||
* @Delete(
|
||||
* path = "/poll/{id}/comments",
|
||||
* path = "/poll/{id}",
|
||||
* name = "poll_comments_delete",
|
||||
* requirements = {"accessToken"="\w+", "id"="\d+"}
|
||||
* )
|
||||
|
Loading…
Reference in New Issue
Block a user