Skip to content

Commit 73798e4

Browse files
committed
restore accidetally deleted method
Signed-off-by: dartcafe <github@dartcafe.de>
1 parent e4eea71 commit 73798e4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/Controller/PollApiController.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,12 @@ public function deleteOrphaned(int $pollId): DataResponse {
209209
'deleted' => $this->voteService->deleteOrphanedVotes($pollId)
210210
]);
211211
}
212+
213+
#[CORS]
214+
#[NoAdminRequired]
215+
#[NoCSRFRequired]
216+
#[ApiRoute(verb: 'GET', url: '/api/v1.0/enum', requirements: ['apiVersion' => '(v2)'])]
217+
public function enum(): DataResponse {
218+
return $this->response(fn () => ['enum' => $this->pollService->getValidEnum()]);
219+
}
212220
}

0 commit comments

Comments
 (0)