Let’s add our first route to the server to be able to test it.
In server.js
, right below the comment add the GET /check
route.
The payload served on this route should be { version: '0.0.1' }
in JSON format.
To verify the implementation, you can run the solution and try to open the link http://localhost:8080/check in your browser.
This task is part of the Full-Stack JavaScript Course.
If you have any issues with it, you can ask for community help below the post.
Feel free to help others if you’ve already solved the task.