• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Abbietech

Abbietech

SmartRoutes

Public
Like
SmartRoutes
Home
Code
2
backend
4
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
backend
/
README.md
Code
/
backend
/
README.md
Search
5/14/2025
Viewing readonly version of main branch: v10
View latest version
README.md

Backend

This directory contains the server-side code for the SmartRoutes application.

Structure

  • index.ts - Main entry point for the backend API
  • database/ - Database setup and query functions
  • routes/ - API route handlers

API Endpoints

Authentication

  • POST /api/auth/signup - Sign up or sign in with Gmail
  • GET /api/auth/me - Get current user information

Traffic Reports

  • POST /api/traffic/reports - Create a new traffic report
  • GET /api/traffic/reports - Get recent traffic reports
  • GET /api/traffic/reports/nearby - Get traffic reports near a location

User Location

  • POST /api/location/update - Update user's current location
  • GET /api/location/current - Get user's current location

Static Files

  • GET / - Serve the main application
  • GET /frontend/* - Serve frontend files
  • GET /shared/* - Serve shared files
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.