Add more HTML elements
This commit is contained in:
6
main.py
6
main.py
@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user