Skip to content

Instantly share code, notes, and snippets.

@rodolphonetto
Last active December 26, 2018 00:10
Show Gist options
  • Save rodolphonetto/513f2e0df6e1f94f7bbd8c7af30c97d9 to your computer and use it in GitHub Desktop.
Save rodolphonetto/513f2e0df6e1f94f7bbd8c7af30c97d9 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