19 lines
No EOL
385 B
JavaScript
19 lines
No EOL
385 B
JavaScript
const verifyAuth = require('../../middlewares/verifyAuth');
|
|
const express = require('express');
|
|
const path = require('path');
|
|
|
|
module.exports = ({ db, config }) => {
|
|
const router = express.Router();
|
|
|
|
router.use(verifyAuth())
|
|
|
|
router.get('/', (req, res) => {
|
|
res.send({
|
|
api: true
|
|
})
|
|
})
|
|
|
|
router.use('/wishlist', require('./wishlist')({ db }));
|
|
|
|
return router;
|
|
} |