christmas/routes/api/index.js

19 lines
385 B
JavaScript
Raw Normal View History

2019-11-17 15:05:45 -08:00
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;
}