Spaces:
Running
on
Inf2
Running
on
Inf2
fix: swagger config
Browse files
src/lib/server/api/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { modelGroup } from "$api/routes/groups/models";
|
|
| 9 |
import { Elysia } from "elysia";
|
| 10 |
import { base } from "$app/paths";
|
| 11 |
import { swagger } from "@elysiajs/swagger";
|
|
|
|
| 12 |
|
| 13 |
const prefix = `${base}/api/v2` as unknown as "";
|
| 14 |
|
|
@@ -17,11 +18,12 @@ export const app = new Elysia({ prefix })
|
|
| 17 |
swagger({
|
| 18 |
documentation: {
|
| 19 |
info: {
|
| 20 |
-
title: "
|
| 21 |
-
version:
|
| 22 |
},
|
| 23 |
},
|
| 24 |
provider: "swagger-ui",
|
|
|
|
| 25 |
})
|
| 26 |
)
|
| 27 |
.use(authPlugin)
|
|
|
|
| 9 |
import { Elysia } from "elysia";
|
| 10 |
import { base } from "$app/paths";
|
| 11 |
import { swagger } from "@elysiajs/swagger";
|
| 12 |
+
import { config } from "$lib/server/config";
|
| 13 |
|
| 14 |
const prefix = `${base}/api/v2` as unknown as "";
|
| 15 |
|
|
|
|
| 18 |
swagger({
|
| 19 |
documentation: {
|
| 20 |
info: {
|
| 21 |
+
title: "chat-ui API",
|
| 22 |
+
version: config.PUBLIC_VERSION,
|
| 23 |
},
|
| 24 |
},
|
| 25 |
provider: "swagger-ui",
|
| 26 |
+
path: `swagger`,
|
| 27 |
})
|
| 28 |
)
|
| 29 |
.use(authPlugin)
|