You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
314 B
JavaScript

import { Router } from "express";
import VisitController from '../controllers/VisitController.js';
import authMiddleware from "../middlewares/authMiddleware.js";
const router = new Router();
router.put('/', VisitController.update);
router.get('/', authMiddleware, VisitController.getAll);
export default router;