Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
608 B
1
Indexable
Never
const express = require ('express')
const router = express.Router();
const tableUser = require('./index')


router.get('/',(req, res)=>{
    //res.sendFile(path.join(__dirname,'views/index.ejs')); Hack indio
    res.status(200).render('index.html',{title:'LeaderGym'}); //Render de web a partir de ejs
});
router.get('/about',(req,res)=>{
    res.status(200).render('about.html',{title:'Sobre Nosotros',tableUser: tableUser})
}) 
router.get('/login',(req,res)=>{
    res.status(200).render('login.html',{title:'Pricing'})
})
console.log("Este es de rutas"+tableUser);
module.exports = router;