From 65b137dacaeb5bf4ad5690b313bd8ba80d5163da Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 2 Aug 2026 13:23:56 +0200 Subject: OpenAPI /api prefix for api routes --- scripts/openapi.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/openapi.js') 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", }, ], -- cgit 1.5.1