summary refs log tree commit diff
path: root/api/src/routes/voice
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-12 23:28:56 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-12 23:28:56 +0200
commit0b5534bc4144d6c708b19b1890b73eb56016e123 (patch)
tree4f17716499b03ba7ee395a7ab6f90df97a41ea46 /api/src/routes/voice
parent:construction: :sparkles: new body parser (bans route) (diff)
downloadserver-0b5534bc4144d6c708b19b1890b73eb56016e123.tar.xz
:sparkles: #307 done
Diffstat (limited to 'api/src/routes/voice')
-rw-r--r--api/src/routes/voice/regions.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/routes/voice/regions.ts b/api/src/routes/voice/regions.ts
index da1aaade..4de304ee 100644
--- a/api/src/routes/voice/regions.ts
+++ b/api/src/routes/voice/regions.ts
@@ -1,10 +1,10 @@
 import { Router, Request, Response } from "express";
-import { getIpAdress } from "@fosscord/api";
+import { getIpAdress, route } from "@fosscord/api";
 import { getVoiceRegions } from "@fosscord/api";
 
 const router: Router = Router();
 
-router.get("/", async (req: Request, res: Response) => {
+router.get("/", route({}), async (req: Request, res: Response) => {
 	res.json(await getVoiceRegions(getIpAdress(req), true)); //vip true?
 });