mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 14:22:27 +00:00
local web
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
import { Hono } from "hono"
|
||||
import { cors } from "hono/cors"
|
||||
import { stream, streamSSE } from "hono/streaming"
|
||||
import { proxy } from "hono/proxy"
|
||||
import { Session } from "../session"
|
||||
import z from "zod"
|
||||
import { Provider } from "../provider/provider"
|
||||
@@ -1696,7 +1697,15 @@ export namespace Server {
|
||||
})
|
||||
})
|
||||
},
|
||||
),
|
||||
)
|
||||
.all("/*", async (c) => {
|
||||
return proxy(`https://desktop.dev.opencode.ai${c.req.path}`, {
|
||||
...c.req,
|
||||
headers: {
|
||||
host: "desktop.dev.opencode.ai",
|
||||
},
|
||||
})
|
||||
}),
|
||||
)
|
||||
|
||||
export async function openapi() {
|
||||
|
||||
Reference in New Issue
Block a user