https://github.com/isodevmate/joidev-lib
https://github.com/isodevmate/joidev-lib
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/isodevmate/joidev-lib
- Owner: IsoDevMate
- Created: 2023-09-04T12:39:44.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-04T12:39:55.000Z (almost 3 years ago)
- Last Synced: 2025-01-26T13:19:29.799Z (over 1 year ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.MD
Awesome Lists containing this project
README
## Creating a school Portal
## BELOW ARE SOME OF THE ENDPOINTS
/people: add new students and teachers
/auth/edit: set login credentials for teachers
/fees/pay: make fee payments for students
## The morgan middleware and the body-parser
These middlewares fetch and parse the body of the current HTTP request for application/json & application/x-www-form-urlencoded requests, and make them available in the req.body of the request’s route handling middleware.
## lets say admin adds teacher data this is the req.body of the request
{
"type": "TEACHER",
"firstname": "Glad",
"lastname": "Chinda"
}