christmas/routes/api/index.js

19 lines
351 B
JavaScript
Raw Normal View History

2020-11-08 13:54:08 -08:00
const verifyAuth = require('../../middlewares/verifyAuth')
const express = require('express')
2019-11-17 15:05:45 -08:00
module.exports = ({ db, config }) => {
2020-11-08 13:54:08 -08:00
const router = express.Router()
2019-11-17 15:05:45 -08:00
router.use(verifyAuth())
router.get('/', (req, res) => {
res.send({
api: true
})
})
2020-11-08 13:54:08 -08:00
router.use('/wishlist', require('./wishlist')({ db }))
2019-11-17 15:05:45 -08:00
2020-11-08 13:54:08 -08:00
return router
}