{"size": 545, "ext": "js", "max_stars_repo_path": "testcour/app.js", "max_stars_repo_name": "Damiensimon-dev/cdadwwm2111", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "testcour/app.js", "max_issues_repo_name": "Damiensimon-dev/cdadwwm2111", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "testcour/app.js", "max_forks_repo_name": "Damiensimon-dev/cdadwwm2111", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.1851851852, "max_line_length": 51, "alphanum_fraction": 0.6330275229}
// import d'express
const express = require('express');
const bodyParser = require('body-parser');

// application express
const app = express();

app.use(bodyParser.urlencoded());
// app.use(bodyParser.json())

app.use((req, res, next) =>{
    let method = req.method;
    let path = req.originalUrl;
    console.log(`${method} ${path}`);
    next();
})

app.use('/', express.static(__dirname + '/public'))


const router = require('./routes')

app.use('/', router)

app.listen(80, () => {
    console.log("Serveur prêt (http://localhost)")
});