mirror of
https://github.com/UofCBaja/BajaCloud.git
synced 2025-07-06 19:17:13 -06:00
feat(Packagers): started testing for post requests
This commit is contained in:
20
newMain.py
20
newMain.py
@ -30,7 +30,27 @@ from GetSchedulePackager import getSchedulePackager
|
||||
|
||||
@app.get("/getSchedule")
|
||||
def getSchedule():
|
||||
|
||||
res = getSchedulePackager()
|
||||
|
||||
return JSONResponse(
|
||||
headers={
|
||||
"isBase64Encoded": "false", # Header Modification
|
||||
},
|
||||
content={
|
||||
"body": res
|
||||
},
|
||||
|
||||
# status_code=200 commented out just to show how to change it if you wanted
|
||||
)
|
||||
|
||||
from postSelectAppointment import SelectAppointment
|
||||
|
||||
@app.post("/SelectInterview")
|
||||
def postSelectInterview(request):
|
||||
|
||||
res = SelectAppointment(request)
|
||||
|
||||
return JSONResponse(
|
||||
headers={
|
||||
"isBase64Encoded": "false", # Header Modification
|
||||
|
Reference in New Issue
Block a user