# Server

HTTP server and web pages for Spike.

## Entry point

`index.tsx` — Bun HTTP server with routes for webhooks and web pages.

## Routes

- `GET /` — Health check
- `POST /gitea/webhook` — Receives Gitea webhook payloads, dispatches to bridge
- `GET /logs` — Log viewer (HTML). Supports `?file=`, `?type=`, `?repo=` query params
- `GET /discord/auth` — Discord bot OAuth authorize page

## Pages

- `logs.tsx` — Server-rendered log viewer with sidebar (files grouped by sha) and filterable event table
