Add basic outline files
This commit is contained in:
parent
88160dc8ec
commit
9eff5f08f4
2 changed files with 21 additions and 0 deletions
11
index.html
Normal file
11
index.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Rock Paper Scissors</title>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
Hello world
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
10
main.py
Normal file
10
main.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from fastapi import FastAPI
|
||||
from fastapi.responses import HTMLResponse
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
html = open("index.html").read()
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return HTMLResponse(html)
|
||||
Loading…
Add table
Add a link
Reference in a new issue