This repository contains two Node.js servers:
- Basic HTTP Server running on port 3000
- Student REST API running on port 4000
Both servers use Node.js's built-in http module and handle JSON data.
A simple HTTP server with three routes.
| Method | Route | Response |
|---|---|---|
| GET | / |
{ "message": "Welcome to the Home Page" } |
| GET | /info |
{ "message": "This is the information page" } |
| POST | /submit |
Accepts JSON and returns the same JSON |
Request Body json { "name": "Elsa", "age": 22 }