glimpse2-runbook
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: v17View latest version
This directory contains all server-side code organized by functionality.
/routes- HTTP route handlers organized by functionality/api- JSON API endpoints for frontend/backend communication/tasks- Webhook handlers for Notion integrations/views- Server-side rendered views for frontend/services- External API integrations (pure API calls only)/controllers- Business logic coordination between routes and services/crons- Scheduled task handlers/types- Shared TypeScript type definitions/utils- Common utility functions
This follows a strict layered architecture:
- Services: Pure API calls to external systems
- Controllers: Business logic and orchestration
- Routes: HTTP request/response handling only