ease comment endpoint

This commit is contained in:
Tykayn 2022-02-11 08:59:50 +01:00 committed by tykayn
parent 9cfb974c27
commit a005aa0f97
1 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ class CommentController extends EmailsController {
/** /**
* @Get( * @Get(
* path = "/poll/{id}/comments", * path = "/poll/{id}",
* name = "get_poll_comment", * name = "get_poll_comment",
* requirements = {"id"="\d+"} * requirements = {"id"="\d+"}
* ) * )
@ -53,7 +53,7 @@ class CommentController extends EmailsController {
/** /**
* add a comment on a poll * add a comment on a poll
* @Post( * @Post(
* path = "/poll/{id}/comment", * path = "/poll/{id}",
* name = "new_comment", * name = "new_comment",
* requirements = {"content"="\w+", "id"="\d+"} * requirements = {"content"="\w+", "id"="\d+"}
* ) * )
@ -146,7 +146,7 @@ class CommentController extends EmailsController {
/** /**
* Erase all comments of a poll * Erase all comments of a poll
* @Delete( * @Delete(
* path = "/poll/{id}/comments", * path = "/poll/{id}",
* name = "poll_comments_delete", * name = "poll_comments_delete",
* requirements = {"accessToken"="\w+", "id"="\d+"} * requirements = {"accessToken"="\w+", "id"="\d+"}
* ) * )