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
2023-08-01 01:25:30 +03:00

12 lines
299 B
JavaScript

const express = require('express');
const port = process.argv[2];
express()
.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}`);
});