Appearance
apps/api/src/features/rideshare/rideshare.router.ts ​
Auto-generated by
scripts/generate-file-docs.ts. Do not edit — overwritten on every run.
Purpose ​
Ride share router — community ride board endpoints under /api/v1. Authorization: - All routes require requireAuth (JWT verified, User row resolved). - Member-only feature gating (VISITOR rejected) is enforced inside RideshareService so the rule lives next to the data access. - Per-trip authorization (driver-only updates, passenger-only cancels, etc.) is enforced inside the service as well. /
Exports ​
export async function rideshareRouter
Imports ​
../../middleware/requireAuthfastify