routes is an HTTP-based module for creating routes
Installation
Use the npm install
command:
📦: npm install @loot.pj/routes
Creating Routes
Creating routes is simple, copy and paste the example code:
const routes = require('@loot.pj/routes');
const app = routes.app.definator();
var port = app.randomPort();
app.path('/', (request, response) => {
response.end('Hello!');
});
app.listen(port, () => {
console.log('App is listening to port ' + port + '!');
});
Updates
Update Cycle (7:48 AM at 10/9/2022): Added new README!
License
MIT