mirror of
https://github.com/UofCBaja/BajaCloud.git
synced 2025-07-06 11:07:12 -06:00
feat(django): failure django is not faster than base python, but is WAAAAAYYY EASIER to code in endpoints, and can work with nginx
This commit is contained in:
26
djangotutorial/mysite/methods/GetSchedulePackager.py
Normal file
26
djangotutorial/mysite/methods/GetSchedulePackager.py
Normal file
@ -0,0 +1,26 @@
|
||||
import yaml
|
||||
import json
|
||||
|
||||
with open("./mysite/methods/MockDB/schedule.yaml", "r") as scheduleyml:
|
||||
ymlschedule = yaml.safe_load(scheduleyml)
|
||||
|
||||
def getSchedulePackager():
|
||||
"""
|
||||
Formats and allows for the
|
||||
|
||||
``REQUIRES``: None
|
||||
|
||||
``PROMISES``: ``JSON`` http response ready
|
||||
|
||||
``Develop in part by``: Brock T
|
||||
|
||||
``Contact``: darkicewolf50@gmail.ocm
|
||||
|
||||
"""
|
||||
|
||||
return {
|
||||
"statusCode": 200,
|
||||
"isBase64ENcoded": "false",
|
||||
"body": json.dumps(ymlschedule)
|
||||
}
|
||||
|
Reference in New Issue
Block a user