Skip to content

Commit

Permalink
clase 16
Browse files Browse the repository at this point in the history
  • Loading branch information
andreybejarano committed Jul 13, 2022
1 parent e1973de commit 56eb1ac
Show file tree
Hide file tree
Showing 13 changed files with 1,089 additions and 0 deletions.
20 changes: 20 additions & 0 deletions clase16/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const express = require('express');
const app = express();
app.use(express.static('public'));


app.listen(3000, ()=>{
console.log('Servidor funcionando');
});

app.get('/', (req,res)=>{
res.sendFile(__dirname + '/views/home.html');
});

app.get('/login', (req,res)=>{
res.sendFile(__dirname + '/views/login.html');
});

app.get('/register', (req,res)=>{
res.sendFile(__dirname + '/views/register.html');
});
374 changes: 374 additions & 0 deletions clase16/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 56eb1ac

Please sign in to comment.