Last active
December 26, 2018 00:10
-
-
Save rodolphonetto/513f2e0df6e1f94f7bbd8c7af30c97d9 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