HTTP reference
API — Feedback, facilities, emergency utilities
Route Handlers under src/app/api. Non-public routes expect a Supabase session cookie. Admin routes also require profiles.role = admin.
PublicCallable without a session where the handler allows it.Signed inRequires a signed-in user.AdminAdmin role on your profile.
| Methods | Path | Access | Summary |
|---|---|---|---|
| POST | /api/feedback | Signed in | Submit in-app product feedback from a signed-in user. |
| POST | /api/facilities/nearby | Signed in | Nearby facilities lookup for maps-style UX. |
| POST | /api/emergency/hospitals | Public | Bangladesh hospital catalog lookup (structured POST body).Used by emergency flows; validate body schema in route source. |