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.
11 lines
326 B
JavaScript
11 lines
326 B
JavaScript
11 months ago
|
const express = require('express');
|
||
|
const router = express.Router();
|
||
|
const cart = require('../controllers/cart');
|
||
|
const auth = require("../auth")
|
||
|
|
||
|
const { authenticateToken, } = auth
|
||
|
// Add route to handle adding a product to the cart
|
||
|
router.post('/add-to-cart', authenticateToken, cart.addToCart);
|
||
|
|
||
|
module.exports = router;
|