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(
* 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+"}
* )