summary refs log tree commit diff
path: root/src/routes
diff options
context:
space:
mode:
authorPaul Munteanu <luth@luthcode.net>2021-07-26 02:19:10 +0300
committerPaul Munteanu <luth@luthcode.net>2021-07-26 02:19:10 +0300
commit16ef8917812457a4c3e2f5fc2dc3126b039b8ccc (patch)
treee38d913cc40fc10e70b1ce803283d96efe429c66 /src/routes
parentMerge pull request #174 from DankDumpster/72-char (diff)
downloadserver-16ef8917812457a4c3e2f5fc2dc3126b039b8ccc.tar.xz
Implement guilds/#guild_id/regions route
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/guilds/#guild_id/regions.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/routes/guilds/#guild_id/regions.ts b/src/routes/guilds/#guild_id/regions.ts
new file mode 100644
index 00000000..3a46d766
--- /dev/null
+++ b/src/routes/guilds/#guild_id/regions.ts
@@ -0,0 +1,10 @@
+import { Config } from "@fosscord/server-util";
+import { Request, Response, Router } from "express";
+
+const router = Router();
+
+router.get("/", async (req: Request, res: Response) => {
+	return res.json(Config.get().regions.available);
+});
+
+export default router;
\ No newline at end of file