Skip to content

Commit 2a487ea

Browse files
chore: generate
1 parent 9c05d4e commit 2a487ea

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

  • packages/opencode/src/server/routes/instance/httpapi

packages/opencode/src/server/routes/instance/httpapi/server.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import { Context, Effect, Layer } from "effect"
22
import { HttpApiBuilder, OpenApi } from "effect/unstable/httpapi"
3-
import { FetchHttpClient, HttpClient, HttpMiddleware, HttpRouter, HttpServer, HttpServerResponse } from "effect/unstable/http"
3+
import {
4+
FetchHttpClient,
5+
HttpClient,
6+
HttpMiddleware,
7+
HttpRouter,
8+
HttpServer,
9+
HttpServerResponse,
10+
} from "effect/unstable/http"
411
import * as Socket from "effect/unstable/socket/Socket"
512
import { AppFileSystem } from "@opencode-ai/core/filesystem"
613
import { Account } from "@/account/account"
@@ -149,10 +156,8 @@ const openApiDocument = OpenApi.fromApi(PublicApi)
149156
const openApiDocumentJson = JSON.stringify(openApiDocument)
150157

151158
const docRoute = HttpRouter.use((router) =>
152-
router.add(
153-
"GET",
154-
"/doc",
155-
() => Effect.succeed(HttpServerResponse.text(openApiDocumentJson, { headers: { "content-type": "application/json" } })),
159+
router.add("GET", "/doc", () =>
160+
Effect.succeed(HttpServerResponse.text(openApiDocumentJson, { headers: { "content-type": "application/json" } })),
156161
),
157162
).pipe(Layer.provide(authOnlyRouterLayer))
158163

0 commit comments

Comments
 (0)