Support GET /trips

In the spirit of support CRUDL, I added a GET /trips, which lists all of the
trips in the Trips table.
This commit is contained in:
William Carroll 2020-07-28 10:13:38 +01:00
parent 2f73d1db6c
commit 0637da36cc
3 changed files with 15 additions and 0 deletions

View file

@ -18,3 +18,6 @@ type API = "user"
:<|> "trip"
:> ReqBody '[JSON] T.Trip
:> Post '[JSON] NoContent
-- Read
:<|> "trips"
:> Get '[JSON] [T.Trip]