Skip to content

Commit

Permalink
✨ feat(routes): create logout
Browse files Browse the repository at this point in the history
  • Loading branch information
EvandroCalado committed Feb 22, 2024
1 parent 9f74e3c commit f92a2f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/authRouter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Router } from "express";
import { login, register } from "../controllers/authController.js";
import { login, logout, register } from "../controllers/authController.js";
import {
validateLoginInput,
validateRegisterInput,
Expand All @@ -9,5 +9,6 @@ const router = Router();

router.post("/register", validateRegisterInput, register);
router.post("/login", validateLoginInput, login);
router.get("/logout", logout);

export default router;

0 comments on commit f92a2f9

Please sign in to comment.