Public
Like
SmartRoutes
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v10View latest version
This directory contains the server-side code for the SmartRoutes application.
index.ts- Main entry point for the backend APIdatabase/- Database setup and query functionsroutes/- API route handlers
POST /api/auth/signup- Sign up or sign in with GmailGET /api/auth/me- Get current user information
POST /api/traffic/reports- Create a new traffic reportGET /api/traffic/reports- Get recent traffic reportsGET /api/traffic/reports/nearby- Get traffic reports near a location
POST /api/location/update- Update user's current locationGET /api/location/current- Get user's current location
GET /- Serve the main applicationGET /frontend/*- Serve frontend filesGET /shared/*- Serve shared files