From 76000f8fa11dde2f67efdb22a87c4644ea49f9eb Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 30 Jan 2021 19:58:15 +0100 Subject: :sparkles: Util --- src/routes/api/v8/auth/login.ts | 9 +++++++++ src/routes/api/v8/auth/register.ts | 4 ++++ src/routes/api/v8/channel/#CHANNELID/followers.ts | 4 ++++ src/routes/api/v8/channel/#CHANNELID/index.ts | 4 ++++ src/routes/api/v8/channel/#CHANNELID/invites.ts | 4 ++++ src/routes/api/v8/channel/#CHANNELID/messages.ts | 4 ++++ src/routes/api/v8/channel/#CHANNELID/permissions.ts | 4 ++++ src/routes/api/v8/channel/#CHANNELID/pins.ts | 4 ++++ src/routes/api/v8/channel/#CHANNELID/recipients.ts | 4 ++++ src/routes/api/v8/channel/#CHANNELID/typing.ts | 4 ++++ src/routes/api/v8/guilds/index.ts | 4 ++++ src/routes/api/v8/guilds/templates/index.ts | 4 ++++ src/routes/api/v8/invite/index.ts | 4 ++++ 13 files changed, 57 insertions(+) (limited to 'src/routes/api/v8') diff --git a/src/routes/api/v8/auth/login.ts b/src/routes/api/v8/auth/login.ts index e69de29b..6d72893b 100644 --- a/src/routes/api/v8/auth/login.ts +++ b/src/routes/api/v8/auth/login.ts @@ -0,0 +1,9 @@ +import { Request, Response, Router } from "express"; +import { check } from "../../../../util/instanceOf"; +const router: Router = Router(); + +router.post("/", check({ test: String, $user: String }), (req: Request, res: Response) => { + res.send("OK"); +}); + +export default router; diff --git a/src/routes/api/v8/auth/register.ts b/src/routes/api/v8/auth/register.ts index e69de29b..9a4e81fa 100644 --- a/src/routes/api/v8/auth/register.ts +++ b/src/routes/api/v8/auth/register.ts @@ -0,0 +1,4 @@ +import { Router } from "express"; +const router: Router = Router(); + +export default router; diff --git a/src/routes/api/v8/channel/#CHANNELID/followers.ts b/src/routes/api/v8/channel/#CHANNELID/followers.ts index e69de29b..9a4e81fa 100644 --- a/src/routes/api/v8/channel/#CHANNELID/followers.ts +++ b/src/routes/api/v8/channel/#CHANNELID/followers.ts @@ -0,0 +1,4 @@ +import { Router } from "express"; +const router: Router = Router(); + +export default router; diff --git a/src/routes/api/v8/channel/#CHANNELID/index.ts b/src/routes/api/v8/channel/#CHANNELID/index.ts index e69de29b..9a4e81fa 100644 --- a/src/routes/api/v8/channel/#CHANNELID/index.ts +++ b/src/routes/api/v8/channel/#CHANNELID/index.ts @@ -0,0 +1,4 @@ +import { Router } from "express"; +const router: Router = Router(); + +export default router; diff --git a/src/routes/api/v8/channel/#CHANNELID/invites.ts b/src/routes/api/v8/channel/#CHANNELID/invites.ts index e69de29b..9a4e81fa 100644 --- a/src/routes/api/v8/channel/#CHANNELID/invites.ts +++ b/src/routes/api/v8/channel/#CHANNELID/invites.ts @@ -0,0 +1,4 @@ +import { Router } from "express"; +const router: Router = Router(); + +export default router; diff --git a/src/routes/api/v8/channel/#CHANNELID/messages.ts b/src/routes/api/v8/channel/#CHANNELID/messages.ts index e69de29b..9a4e81fa 100644 --- a/src/routes/api/v8/channel/#CHANNELID/messages.ts +++ b/src/routes/api/v8/channel/#CHANNELID/messages.ts @@ -0,0 +1,4 @@ +import { Router } from "express"; +const router: Router = Router(); + +export default router; diff --git a/src/routes/api/v8/channel/#CHANNELID/permissions.ts b/src/routes/api/v8/channel/#CHANNELID/permissions.ts index e69de29b..9a4e81fa 100644 --- a/src/routes/api/v8/channel/#CHANNELID/permissions.ts +++ b/src/routes/api/v8/channel/#CHANNELID/permissions.ts @@ -0,0 +1,4 @@ +import { Router } from "express"; +const router: Router = Router(); + +export default router; diff --git a/src/routes/api/v8/channel/#CHANNELID/pins.ts b/src/routes/api/v8/channel/#CHANNELID/pins.ts index e69de29b..9a4e81fa 100644 --- a/src/routes/api/v8/channel/#CHANNELID/pins.ts +++ b/src/routes/api/v8/channel/#CHANNELID/pins.ts @@ -0,0 +1,4 @@ +import { Router } from "express"; +const router: Router = Router(); + +export default router; diff --git a/src/routes/api/v8/channel/#CHANNELID/recipients.ts b/src/routes/api/v8/channel/#CHANNELID/recipients.ts index e69de29b..9a4e81fa 100644 --- a/src/routes/api/v8/channel/#CHANNELID/recipients.ts +++ b/src/routes/api/v8/channel/#CHANNELID/recipients.ts @@ -0,0 +1,4 @@ +import { Router } from "express"; +const router: Router = Router(); + +export default router; diff --git a/src/routes/api/v8/channel/#CHANNELID/typing.ts b/src/routes/api/v8/channel/#CHANNELID/typing.ts index e69de29b..9a4e81fa 100644 --- a/src/routes/api/v8/channel/#CHANNELID/typing.ts +++ b/src/routes/api/v8/channel/#CHANNELID/typing.ts @@ -0,0 +1,4 @@ +import { Router } from "express"; +const router: Router = Router(); + +export default router; diff --git a/src/routes/api/v8/guilds/index.ts b/src/routes/api/v8/guilds/index.ts index e69de29b..9a4e81fa 100644 --- a/src/routes/api/v8/guilds/index.ts +++ b/src/routes/api/v8/guilds/index.ts @@ -0,0 +1,4 @@ +import { Router } from "express"; +const router: Router = Router(); + +export default router; diff --git a/src/routes/api/v8/guilds/templates/index.ts b/src/routes/api/v8/guilds/templates/index.ts index e69de29b..9a4e81fa 100644 --- a/src/routes/api/v8/guilds/templates/index.ts +++ b/src/routes/api/v8/guilds/templates/index.ts @@ -0,0 +1,4 @@ +import { Router } from "express"; +const router: Router = Router(); + +export default router; diff --git a/src/routes/api/v8/invite/index.ts b/src/routes/api/v8/invite/index.ts index e69de29b..9a4e81fa 100644 --- a/src/routes/api/v8/invite/index.ts +++ b/src/routes/api/v8/invite/index.ts @@ -0,0 +1,4 @@ +import { Router } from "express"; +const router: Router = Router(); + +export default router; -- cgit 1.5.1