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

const router: Router = Router();

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

export default router;