diff --git a/package-lock.json b/package-lock.json index 47a90f5..0201008 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,11 +9,10 @@ "version": "1.0.0", "license": "Apache-2.0", "dependencies": { - "axios": "^1.7.3", + "axios": "^1.6.0", "express": "^4.19.2", "fast-xml-parser": "^4.4.1", "jose": "^5.2.0", - "mustache-express": "^1.3.2", "nodemon": "^3.0.1", "uuid": "^9.0.0" }, @@ -1490,11 +1489,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/async": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", - "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==" - }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -4549,6 +4543,7 @@ "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, "dependencies": { "yallist": "^3.0.2" } @@ -4693,27 +4688,6 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, - "node_modules/mustache": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", - "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==", - "bin": { - "mustache": "bin/mustache" - } - }, - "node_modules/mustache-express": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/mustache-express/-/mustache-express-1.3.2.tgz", - "integrity": "sha512-yAdGHctEq9ubUH7h9O6Z6kW35fwfE+7LpW/TBrcfVibZuiVRHDcK8DEydgiU5nlJmJUY5VC3jv2lzaPUL+Arkw==", - "dependencies": { - "async": "~3.2.0", - "lru-cache": "~5.1.1", - "mustache": "^4.2.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -6369,7 +6343,8 @@ "node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true }, "node_modules/yargs": { "version": "17.7.2", diff --git a/package.json b/package.json index ffcf3b2..b478b6b 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "express": "^4.19.2", "fast-xml-parser": "^4.4.1", "jose": "^5.2.0", - "mustache-express": "^1.3.2", "nodemon": "^3.0.1", "uuid": "^9.0.0" }, diff --git a/src/ootsFrance.js b/src/ootsFrance.js index 48764b6..6d96648 100644 --- a/src/ootsFrance.js +++ b/src/ootsFrance.js @@ -1,5 +1,4 @@ const express = require('express'); -const mustacheExpress = require('mustache-express'); const routesAdmin = require('./routes/routesAdmin'); const routesBase = require('./routes/routesBase'); @@ -21,10 +20,6 @@ const creeServeur = (config) => { app.set('trust proxy', 1); - app.set('views', `${__dirname}/vues`); - app.set('view engine', 'mustache'); - app.engine('mustache', mustacheExpress()); - app.use('/admin', routesAdmin({ ecouteurDomibus })); app.use('/ebms', routesEbms({ adaptateurUUID, horodateur }));