2024-09-23 23:24:59 +02:00

14 lines
407 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;