13 lines
254 B
Python
13 lines
254 B
Python
from fastapi import FastAPI
|
|
from starlette.responses import FileResponse
|
|
|
|
app = FastAPI()
|
|
|
|
@app.get("/")
|
|
async def main_page():
|
|
return FileResponse("web/app.html")
|
|
|
|
|
|
@app.get("/edit")
|
|
async def construction():
|
|
return FileResponse("web/edit.html") |