neobot / main.py
yadavkapil23's picture
new commit
10e8a0c
raw
history blame
551 Bytes
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from fastapi.templating import Jinja2Templates
from fastapi.requests import Request
from endpoints import router
app = FastAPI()
# Serve static files (CSS, JS)
app.mount("/static", StaticFiles(directory="static"), name="static")
# Serve HTML templates
templates = Jinja2Templates(directory="templates")
@app.get("/")
def home(request: Request):
return templates.TemplateResponse("index.html", {"request": request})
# Include your API endpoints
app.include_router(router)