mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
remove description annotation
This commit is contained in:
parent
ca5a77c408
commit
c5dc43580b
@ -218,6 +218,11 @@ class PollController extends EmailsController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param $poll
|
||||||
|
* @param $serializer
|
||||||
|
* @return Response
|
||||||
|
*/
|
||||||
function returnPollData( $poll, $serializer ) {
|
function returnPollData( $poll, $serializer ) {
|
||||||
$jsonResponse = $serializer->serialize( $poll, 'json' );
|
$jsonResponse = $serializer->serialize( $poll, 'json' );
|
||||||
|
|
||||||
@ -265,7 +270,7 @@ class PollController extends EmailsController {
|
|||||||
* requirements = {"creator"="\w+"}
|
* requirements = {"creator"="\w+"}
|
||||||
* )
|
* )
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
* @description create a new poll
|
* create a new poll
|
||||||
* @return JsonResponse
|
* @return JsonResponse
|
||||||
*/
|
*/
|
||||||
public function newPollAction( Request $request ) {
|
public function newPollAction( Request $request ) {
|
||||||
@ -329,7 +334,7 @@ class PollController extends EmailsController {
|
|||||||
|
|
||||||
$newpoll->setIsZeroKnowledge( $data[ 'is_zero_knowledge' ] );
|
$newpoll->setIsZeroKnowledge( $data[ 'is_zero_knowledge' ] );
|
||||||
$newpoll->setDescription( $data[ 'description' ] );
|
$newpoll->setDescription( $data[ 'description' ] );
|
||||||
$newpoll->setHideResults( false );
|
$newpoll->setHideResults( $data[ 'hideResults' ] );
|
||||||
// possible answers
|
// possible answers
|
||||||
$newpoll->setAllowedAnswers( $data[ 'allowed_answers' ] );
|
$newpoll->setAllowedAnswers( $data[ 'allowed_answers' ] );
|
||||||
$newpoll->setVotesMax( $data[ 'maxCountOfAnswers' ] );
|
$newpoll->setVotesMax( $data[ 'maxCountOfAnswers' ] );
|
||||||
|
Loading…
Reference in New Issue
Block a user