summary refs log tree commit diff
path: root/scripts/openapi.js
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-08-02 13:23:56 +0200
committerRory& <root@rory.gay>2026-08-02 13:23:56 +0200
commit65b137dacaeb5bf4ad5690b313bd8ba80d5163da (patch)
tree7fd0784b1ab7842f5d3b29a44b256a2c9d3d6070 /scripts/openapi.js
parentSome API docs... (diff)
downloadserver-ts-65b137dacaeb5bf4ad5690b313bd8ba80d5163da.tar.xz
OpenAPI /api prefix for api routes
Diffstat (limited to 'scripts/openapi.js')
-rw-r--r--scripts/openapi.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/openapi.js b/scripts/openapi.js

index 59eb33ea..f2b04ed8 100644 --- a/scripts/openapi.js +++ b/scripts/openapi.js
@@ -1,6 +1,6 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. - Copyright (C) 2023 Spacebar and Spacebar Contributors + Copyright (C) 2026 Spacebar and Spacebar Contributors This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published @@ -25,7 +25,7 @@ require("module-alias/register"); const getRouteDescriptions = require("./util/getRouteDescriptions"); const path = require("path"); const fs = require("fs"); -const { bgRedBright, bgYellow, black, bgYellowBright, blue, white } = require("picocolors"); +const { bgRedBright, white } = require("picocolors"); const openapiPath = path.join(__dirname, "..", "assets", "openapi.json"); const SchemaPath = path.join(__dirname, "..", "assets", "schemas.json"); @@ -53,7 +53,7 @@ let specification = { }, servers: [ { - url: "https://api.rory.server.spacebar.chat/api/", + url: "https://api.rory.server.spacebar.chat/", description: "Official Spacebar Instance", }, ],