Start work on making a basic setting edit function

This commit is contained in:
Curt Spark 2024-06-12 20:23:05 +01:00
parent fd888e3a67
commit 460cb8ac55
1 changed files with 5 additions and 1 deletions

View File

@ -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!"}