1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-06-12 22:17:33 +02:00

examples refactoring

This commit is contained in:
Sergey Konstantinov
2023-08-01 01:25:30 +03:00
parent c35d5ae61d
commit 31e9a55e6c
19 changed files with 711 additions and 384 deletions

View File

@ -2,7 +2,10 @@ const express = require('express');
const port = process.argv[2];
express()
.use('/', express.static('docs'))
.get('/', (req, res) => {
res.redirect('/The-API-Book');
})
.use('/The-API-Book', express.static('docs'))
.listen(port, () => {
console.log(`Docs Server is listening port ${port}`);
});