Created
October 9, 2020 20:03
-
-
Save buddyeorl/4addccd6eedcabffa12f0e71be2ff348 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const router = express.Router(); | |
const bodyParser = require('body-parser'); | |
router.use(bodyParser.urlencoded({ extended: true })); | |
router.use(bodyParser.json()); | |
//middleware | |
const equipmentLookup = require('../helper/equipmentData/equipmentLookup'); | |
router.get('/', equipmentLookup, (req, res) => { | |
res.send(req.locals) | |
}); | |
module.exports = router; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment