git clone https://github.com/Sudo-null7/Simple-Node.JS-API.git
cd Simple-Node.JS-API
npm install .
node main.js
To Get full request of train array
https://localhost/train
To get specific Train use
https://localhost/train/A1
JSON Data set
Letter | Departure Time |
---|---|
A1 | 12:00 |
A2 | 12:30 |
B1 | 13:00 |
B2 | 13:30 |
C1 | 14:30 |
C2 | 15:00 |
In main.js you can edit the Variable with the name port
form 80 to anything you want