Skip to content

Commit

Permalink
re: improve clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
cybardev committed Aug 25, 2024
1 parent 2fe8eb5 commit a5bf7c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
from fastapi.responses import FileResponse, HTMLResponse
from fastapi.templating import Jinja2Templates

# --- SERVER --- #

app = FastAPI()
templates = Jinja2Templates(directory="static/site")

# --- SERVER --- #


@app.get("/", response_class=HTMLResponse)
async def root(request: Request):
async def client(request: Request):
return templates.TemplateResponse("index.html", {"request": request})


Expand Down

0 comments on commit a5bf7c0

Please sign in to comment.