Skip to content

Commit

Permalink
clase 10
Browse files Browse the repository at this point in the history
  • Loading branch information
andreybejarano committed Jun 17, 2022
1 parent 742e450 commit 8789e9e
Show file tree
Hide file tree
Showing 24 changed files with 3,615 additions and 0 deletions.
Binary file added clase10/.DS_Store
Binary file not shown.
42 changes: 42 additions & 0 deletions clase10/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
const express = require('express');
const path = require('path');

const app = express();

app.use(express.static('public'));

app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, './views/index.html'));
});

app.get('/babbage', (req, res) => {
res.sendFile(path.join(__dirname, './views/babbage.html'));
});

app.get('/berners-lee', (req, res) => {
res.sendFile(path.join(__dirname, './views/berners-lee.html'));
});

app.get('/clarke', (req, res) => {
res.sendFile(path.join(__dirname, './views/clarke.html'));
});

app.get('/hamilton', (req, res) => {
res.sendFile(path.join(__dirname, './views/hamilton.html'));
});

app.get('/hopper', (req, res) => {
res.sendFile(path.join(__dirname, './views/hopper.html'));
});

app.get('/lovelace', (req, res) => {
res.sendFile(path.join(__dirname, './views/lovelace.html'));
});

app.get('/turing', (req, res) => {
res.sendFile(path.join(__dirname, './views/turing.html'));
});

app.listen(3030, () => {
console.log('Servidor iniciado en: http://localhost:3030');
});
Loading

0 comments on commit 8789e9e

Please sign in to comment.