This document provides an overview of the Motlobo Online Home School API endpoints.
https://api.motlobo.ac.bw
Returns a success message indicating that the API is working as expected.
{
"success": true,
"message": "The API is working as expected."
}
This is a fallback route that is triggered when an undefined endpoint is accessed.
{
"message": "The endpoint you specified was not found.",
"success": false
}
The following middleware is applied globally:
cors: Allows cross-origin requests from any origin.body-parser: Parses incoming request bodies with a limit of 100MB.The authentication module is imported and initialized. Refer to the ./src/routes/authentication file for more details on the routes it defines.