Closed martincodes-de closed 1 year ago
Create polls/:id with http verb get to get all data about the poll (calculated votes included). Return JSON
polls/:id
get
Use Poll::findOrFail() and see https://laravel.com/docs/9.x/controllers See other controller methods how to access parameters and how to return json.
Create
polls/:id
with http verbget
to get all data about the poll (calculated votes included). Return JSON