From 460cb8ac55b0ef3f39d1b1d7989ded4f60a44265 Mon Sep 17 00:00:00 2001 From: cspark Date: Wed, 12 Jun 2024 20:23:05 +0100 Subject: [PATCH] Start work on making a basic setting edit function --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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!"}