1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-05-13 21:26:26 +02:00
The-API-Book/scripts/docs-server.js

12 lines
299 B
JavaScript
Raw Normal View History

2023-07-30 15:25:21 +03:00
const express = require('express');
const port = process.argv[2];
express()
2023-08-01 01:25:30 +03:00
.get('/', (req, res) => {
res.redirect('/The-API-Book');
})
.use('/The-API-Book', express.static('docs'))
2023-07-30 15:25:21 +03:00
.listen(port, () => {
console.log(`Docs Server is listening port ${port}`);
});