Fix auth system

This commit is contained in:
Stefan-5422
2022-05-04 11:46:36 +02:00
parent 6099f58771
commit 7f52f8c30e
5 changed files with 14 additions and 11 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
import { Router } from "express";
import { register } from "../controller/auth.controller";
import { authenthicate, register } from "../controller/auth.controller";
import { getAuthenthication } from "../middleware/auth.middle";
const router = Router();
router.post("/register", getAuthenthication, register);
router.post("/authenthicate",authenthicate);
export default router;