main module
- main.get_json_data()[source]
This function is called when a GET request is made to the /json URL. It reads the JSON data from the request and write it to the file.
- Returns:
The data processed by certain function.
- main.page_not_found(error)[source]
This function is called when a 404 error occurs.
- Parameters:
error – The error message.
- Returns:
The error message.