Endpoints
Endpoints are small HTTP functions on your Cloud public host: https://{project}.bunstation.dev/your-path. They are Bun + Hono, one route per function.
Use them for anything the static site should not do in the browser: payments webhooks, admin mutations, signed uploads, server-side secrets.
Create
The empty state says No HTTP endpoints yet. Chat creates them when this site needs an API.
Add a POST /rsvp endpoint that inserts into the guests table.
Chat calls ensure_project if Cloud is not up yet, then creates the function. Login and signup are not created as Hono routes — Auth already lives on the Cloud project URL.
Edit
Click a row → Edit endpoint. You can change:
- Method —
GET,POST,PUT,DELETE - Path
- TypeScript source (CodeMirror)
Save sends a patch. The editor is read-only if the subscription is not active.
Each source file should keep one app.get|post|put|delete that matches the method and path.
Call from the site
Point fetch at the public host + path, for example https://abc.bunstation.dev/rsvp. CORS allows browser calls.
Do not use the public host for createClient / Auth / table REST. Those stay on the project URL. See Cloud.
Invocations
The table shows a 24-hour sparkline per endpoint. Deeper logs live on the Cloud platform, not in this list.
Auth on the wire
Platform endpoints are public unless your code checks a JWT. If only signed-in users should hit a route, verify the token in the Hono handler using the injected Supabase keys.