diff --git a/main.py b/main.py index ef406da..72a0dd5 100644 --- a/main.py +++ b/main.py @@ -342,7 +342,7 @@ def postblogCreate(body: postblogCreateBody): # /api/blog/contents/org/{blogID} # POST -# /api/user/changeInfo/{infotype} +# /api/user/changeInfo # TODO: Need to overhaul this to accept an input file which we can read in chunks to ensure a too big file isn't sent, frontend will convert textbox/form data appropriately # https://github.com/steinnes/content-size-limit-asgi @@ -351,6 +351,10 @@ def postblogCreate(body: postblogCreateBody): # /api/blog/edit +@app.get("/api/debug") +def getdebug(request: Request): + return request.json() + @app.get("/api") def getapi(): return {"Hello": "API!"}