2024-07-16 19:04:16 +02:00

14 lines
413 B
TypeScript

import express, { type Request, type Response } from "express";
import userController from '../controllers/userController';
import checkAuthenticated from '../miscellaneous/checkAuthenticated';
const router = express.Router();
/* GET home page. */
router.get('/', userController.render);
router.post('/', userController.create);
router.put('/', checkAuthenticated, userController.get);
export default router;