Remove testroutes; Update register endpoint; Add Redis lib

This commit is contained in:
Stefan-5422
2022-03-30 12:21:02 +02:00
parent 71e3a3c941
commit 8f9a8ebdea
9 changed files with 366 additions and 6 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
import { Router } from "express";
import { register } from "../controller/auth.controller";
import { getAuthenthication } from "../middleware/auth.middle";
const router = Router();
router.post("/register", register);
router.post("/register", getAuthenthication, register);
export default router;
View File