mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 05:02:37 +01:00
Implement guilds/#guild_id/regions route
This commit is contained in:
parent
707e94614b
commit
16ef891781
10
src/routes/guilds/#guild_id/regions.ts
Normal file
10
src/routes/guilds/#guild_id/regions.ts
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user