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 ++++ 2 files changed, 13 insertions(+) (limited to 'src/routes/api/v8/auth') 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; -- cgit 1.5.1