Backend

This folder contains all server-side code for this project.

Files

  • index.ts - The main HTTP entrypoint for the project that serves frontend assets and API endpoints

Important Notes

  • This file must be set as an HTTP type in Val Town, not a Script
  • It exports app.fetch (not the app object) which is required for Val Town HTTP handlers