Skip to content

Instantly share code, notes, and snippets.

@rodolphonetto
Created December 26, 2018 00:44
Show Gist options
  • Save rodolphonetto/4274282a7714aea09f564fbd26018f59 to your computer and use it in GitHub Desktop.
Save rodolphonetto/4274282a7714aea09f564fbd26018f59 to your computer and use it in GitHub Desktop.
const express = require('express')
const router = express.Router()
const path = require('path')
router.get('/', (req, res, next) => {
res.sendFile(path.join(__dirname, '../', 'views', 'produtos', 'produtos.html'))
})
router.get('/add_produto', (req, res, next) => {
res.sendFile(path.join(__dirname, '../', 'views', 'produtos', 'add_produto.html'))
})
module.exports = router
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment