summary refs log tree commit diff
path: root/api
diff options
context:
space:
mode:
authorThesourtimes <cckhmck@gmail.com>2021-12-05 21:53:58 +0300
committerThesourtimes <cckhmck@gmail.com>2021-12-05 21:53:58 +0300
commit98860e2eae3a9ea578b18751ca9d232e87456167 (patch)
tree86bd65265bbd238237ae6b4e74f07d792d892875 /api
parentMake INTERNAL_EMPLOYEE_ONLY functional (diff)
downloadserver-98860e2eae3a9ea578b18751ca9d232e87456167.tar.xz
Minor API work
Diffstat (limited to 'api')
-rw-r--r--api/src/middlewares/Authentication.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/api/src/middlewares/Authentication.ts b/api/src/middlewares/Authentication.ts
index 8fbdd2b7..20ba42d8 100644
--- a/api/src/middlewares/Authentication.ts
+++ b/api/src/middlewares/Authentication.ts
@@ -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)/
 ];