DB works now.
This commit is contained in:
@@ -21,11 +21,13 @@ app = FastAPI(
|
||||
version="0.1.0",
|
||||
)
|
||||
|
||||
# Mount static files
|
||||
app.mount("/static", StaticFiles(directory="packetserver/http/static"), name="static")
|
||||
# New static (relative to this file's location – always works)
|
||||
from pathlib import Path
|
||||
|
||||
# Templates
|
||||
templates = Jinja2Templates(directory="packetserver/http/templates")
|
||||
BASE_DIR = Path(__file__).parent.resolve()
|
||||
|
||||
app.mount("/static", StaticFiles(directory=BASE_DIR / "static"), name="static")
|
||||
templates = Jinja2Templates(directory=BASE_DIR / "templates")
|
||||
|
||||
security = HTTPBasic()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user