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

const router: Router = Router();

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

export default router;