christmas/routes/api/index.js
2019-11-17 18:05:45 -05:00

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;
}