Deligo API
A REST API for restaurant discovery and food ordering, including geospatial search for restaurants near a point.
JWT issued at login, stored in an httpOnly cookie, verified by middleware on protected routes.
| Method | Path | Notes |
|---|---|---|
| POST | /api/v1/account/signup | |
| POST | /api/v1/account/login | |
| GET | /api/v1/restaurants/nearlat, lng, distance, unit (mi | km) | lat, lng, distance, unit (mi | km) |
| GET | /api/v1/restaurants/distanceslat, lng, unit | lat, lng, unit |
| GET | /api/v1/restaurants/:id/menuitems | |
| POST | /api/v1/restaurants/:id/orders | |
| GET | /api/v1/ordersthe signed-in user’s orders | the signed-in user’s orders |
