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.
13 lines
310 B
JavaScript
13 lines
310 B
JavaScript
5 years ago
|
const router = module.exports = require('express-promise-router')()
|
||
|
const parseJSON = require('body-parser').json()
|
||
|
const db = require('../db')
|
||
|
|
||
|
// TODO: Actually implement cart!
|
||
|
|
||
|
router.get('/', async (req, res)=>{
|
||
|
res.json(null);
|
||
|
})
|
||
|
|
||
|
router.post('/add', parseJSON, async (req, res) => {
|
||
|
res.json(null)
|
||
|
})
|