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 handlersPOST /api/auth/signup - Sign up or sign in with GmailGET /api/auth/me - Get current user informationPOST /api/traffic/reports - Create a new traffic reportGET /api/traffic/reports - Get recent traffic reportsGET /api/traffic/reports/nearby - Get traffic reports near a locationPOST /api/location/update - Update user's current locationGET /api/location/current - Get user's current locationGET / - Serve the main applicationGET /frontend/* - Serve frontend filesGET /shared/* - Serve shared files