|
|
@ -25,7 +25,7 @@ app.use(bodyParser.json()); |
|
|
|
// Route pour notre documentation
|
|
|
|
app.use('/docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument)); // documentation à la racine
|
|
|
|
|
|
|
|
app.get('/', (req, res) => res.sendFile(path.join(__dirname + '/welcome_page/index.html'))); // route racine
|
|
|
|
app.get('/', (req, res) => res.sendFile(path.join(__dirname + '/welcome_page/index.html'))); // route welcome page
|
|
|
|
|
|
|
|
app.use("/api",routes) // route /api par défaut
|
|
|
|
|
|
|
|