summary refs log tree commit diff
path: root/src/api/routes/voice/regions.ts
blob: eacdcf11c3431c078f573a9b1a6cd0c4320b1963 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import { getIpAdress, getVoiceRegions, route } from "@fosscord/api";
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;