Created
December 26, 2018 00:44
-
-
Save rodolphonetto/4274282a7714aea09f564fbd26018f59 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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