You've already forked The-API-Book
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:
@ -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}`);
|
||||
});
|
||||
|
Reference in New Issue
Block a user