import express from 'express'; import { authenticateToken } from '../middlewares/checkAuth.test'; import { addToCart, listCart, checkout } from '../controllers/CartController.test'; const cartRouter = express.Router(); cartRouter.post('/', authenticateToken, addToCart); cartRouter.get('/', authenticateToken, listCart); cartRouter.post('/checkout', authenticateToken, checkout); export default cartRouter;