diff options
author | Paul Munteanu <luth@luthcode.net> | 2021-07-26 02:19:10 +0300 |
---|---|---|
committer | Paul Munteanu <luth@luthcode.net> | 2021-07-26 02:19:10 +0300 |
commit | 16ef8917812457a4c3e2f5fc2dc3126b039b8ccc (patch) | |
tree | e38d913cc40fc10e70b1ce803283d96efe429c66 /src/routes | |
parent | Merge pull request #174 from DankDumpster/72-char (diff) | |
download | server-16ef8917812457a4c3e2f5fc2dc3126b039b8ccc.tar.xz |
Implement guilds/#guild_id/regions route
Diffstat (limited to 'src/routes')
-rw-r--r-- | src/routes/guilds/#guild_id/regions.ts | 10 |
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 |