At this point we have working ORM and we can use that to access data from our database. We want to create a new endpoint to get all destinations from the database.
AC:
Add a new endpoint on v2 route to get all destinations i.e /api/v2/destinations
This endpoint's controller should use the ORM and get the data from the database
At this point we have working ORM and we can use that to access data from our database. We want to create a new endpoint to get all destinations from the database.
AC: