Start work on making a basic setting edit function
This commit is contained in:
parent
fd888e3a67
commit
460cb8ac55
6
main.py
6
main.py
|
|
@ -342,7 +342,7 @@ def postblogCreate(body: postblogCreateBody):
|
||||||
# /api/blog/contents/org/{blogID}
|
# /api/blog/contents/org/{blogID}
|
||||||
|
|
||||||
# POST
|
# 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
|
# 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
|
# https://github.com/steinnes/content-size-limit-asgi
|
||||||
|
|
@ -351,6 +351,10 @@ def postblogCreate(body: postblogCreateBody):
|
||||||
|
|
||||||
# /api/blog/edit
|
# /api/blog/edit
|
||||||
|
|
||||||
|
@app.get("/api/debug")
|
||||||
|
def getdebug(request: Request):
|
||||||
|
return request.json()
|
||||||
|
|
||||||
@app.get("/api")
|
@app.get("/api")
|
||||||
def getapi():
|
def getapi():
|
||||||
return {"Hello": "API!"}
|
return {"Hello": "API!"}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue