1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 12:42:44 +01:00

Minor API work

This commit is contained in:
Thesourtimes 2021-12-05 21:53:58 +03:00
parent ea9efbbdd8
commit 98860e2eae
2 changed files with 10 additions and 2 deletions

View File

@ -3,17 +3,25 @@ import { HTTPError } from "lambert-server";
import { checkToken, Config, Rights } from "@fosscord/util";
export const NO_AUTHORIZATION_ROUTES = [
//Authentication routes
"/auth/login",
"/auth/register",
"/auth/location-metadata",
//Routes with a seperate auth system
"/webhooks/",
//Public information endpoints
"/ping",
"/gateway",
"/experiments",
//Public kubernetes integration
"/-/readyz",
"/-/healthz",
//Client nalytics
"/science",
"/track",
//Public policy pages
"/policies/instance",
//Asset delivery
/\/guilds\/\d+\/widget\.(json|png)/
];

View File

@ -26,9 +26,9 @@ dirs.forEach((a) => {
if (verbose) console.log(`Copied ${"../" + a + "/dist"} -> ${"dist/" + a + "/src"}!`);
});
console.log("Copying src files done");
console.log("[1/2] Copying src files done");
if (!argv.includes("copyonly")) {
console.log("Compiling src files ...");
console.log("[2/2] Compiling src files ...");
console.log(
execSync(