mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
opencode chat backend
This commit is contained in:
@@ -36,6 +36,8 @@ const main = async () => {
|
||||
"/": withGlobal(() => new Response(`title: tnirps\ndev-mode: ${DEV}\nport: ${PORT}`)),
|
||||
"/health": withGlobal(() => new Response("OK")),
|
||||
|
||||
"/ai/chat": withGlobalAuthed(withAuth(routes.aiChat)),
|
||||
|
||||
// routes that modify state require withCSRF middleware
|
||||
"/auth/register": withGlobal(routes.authRegister),
|
||||
"/auth/login": withGlobal(routes.authLogin),
|
||||
|
||||
Reference in New Issue
Block a user