Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict'
- const express = require('express'),
- app = express();
- app.get('/', function(req, res) {
- res.sendFile(__dirname + '/public/accueil.html')
- });
- app.get('/about', function(req, res) {
- res.sendFile(__dirname + '/public/apropos.html')
- });
- app.listen(3000, function() {
- console.log('Tu tourne sur le port 3000!')
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement