Add more HTML elements

This commit is contained in:
2021-10-28 16:10:02 +02:00
parent c5fdfa3215
commit 84537b7f01

View File

@ -60,12 +60,18 @@ async def upload_file(file: UploadFile = File(...)):
@app.get("/") @app.get("/")
async def main(): async def main():
content = """ content = """
<!DOCTYPE html>
<html>
<head>
<title>discord-nice-embed</title>
</head>
<body> <body>
<form action="/uploadfiles/" enctype="multipart/form-data" method="post"> <form action="/uploadfiles/" enctype="multipart/form-data" method="post">
<input name="file" type="file"> <input name="file" type="file">
<input type="submit"> <input type="submit">
</form> </form>
</body> </body>
</html>
""" """
return HTMLResponse(content=content) return HTMLResponse(content=content)