feat: add server link sharing

This commit is contained in:
Dax Raad 2026-07-08 18:41:08 -04:00
commit 7698a5e6ac
25 changed files with 1586 additions and 1194 deletions

View file

@ -0,0 +1,16 @@
import { Schema } from "effect"
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi"
export const ServerGroup = HttpApiGroup.make("server.server")
.add(
HttpApiEndpoint.get("server.get", "/api/server", {
success: Schema.Struct({ urls: Schema.Array(Schema.String) }),
}).annotateMerge(
OpenApi.annotations({
identifier: "v2.server.get",
summary: "Get server information",
description: "Return the URLs that can be used to connect to this server.",
}),
),
)
.annotateMerge(OpenApi.annotations({ title: "server" }))