feat: add common view module

This commit is contained in:
2024-08-13 20:54:12 +03:00
parent bf51ddabc0
commit 05161749e8
19 changed files with 155 additions and 88 deletions

View File

@@ -0,0 +1,9 @@
from pathlib import Path
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
def mount(app: FastAPI):
base_dir = Path(__file__).parent
app.mount("/static/common", StaticFiles(directory=base_dir / "static"))