UNPKG

@kazion/create-app

Version:

A cli tool to help you get started with graphql and rest api's with typescript

15 lines (11 loc) 324 B
import { Router } from "express"; import { loginController, logoutController, registerController, } from "./auth.controllers"; const router = Router(); router.post("/login", loginController); router.post("/register", registerController); router.delete("/logout", logoutController); export { router as authRouter };