pollmelo / backberry

fruity backend for pollmelo
2 stars 0 forks source link

Create empty VoteController without resources #19

Closed martincodes-de closed 1 year ago

martincodes-de commented 1 year ago

Create an empty http-api controller named VoteController. The VoteController is responsible to create, read, update or delete polls (CRUD-functions).

Use the artisan make-command to create it. Don't use the resource option. We will define our methods and routes by ourselves.

Create an empty route prefix for this controller. See below. Use the routing in routes/api.php because we write a http-api and backend is separated by frontend.

Resources