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:
parent
2f73d1db6c
commit
0637da36cc
3 changed files with 15 additions and 0 deletions
|
|
@ -18,3 +18,6 @@ type API = "user"
|
|||
:<|> "trip"
|
||||
:> ReqBody '[JSON] T.Trip
|
||||
:> Post '[JSON] NoContent
|
||||
-- Read
|
||||
:<|> "trips"
|
||||
:> Get '[JSON] [T.Trip]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue