summary refs log tree commit diff
path: root/src/api/routes/voice/regions.ts
blob: 1b5541e762a1038a6fe86fca4f7ed52fb44af2e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { getVoiceRegions, route } from "@fosscord/api";
import { getIpAdress } from "@fosscord/util";
import { Request, Response, Router } from "express";

const router: Router = Router();

router.get("/", route({}), async (req: Request, res: Response) => {
	res.json(await getVoiceRegions(getIpAdress(req), true)); //vip true?
});

export default router;