Skip to content

Commit

Permalink
chore: minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
SAMAD101 authored Jan 14, 2024
1 parent 6d22086 commit e6eba07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/link_liberate/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
BASE_URL: str = r"http://0.0.0.0:8080"

BASE_DIR: Path = Path(__file__).resolve().parent
app.mount("/static", StaticFiles(directory=str(Path(BASE_DIR, "static"))), name="static")

app.add_middleware(
CORSMiddleware,
allow_origins=origins,
Expand All @@ -41,6 +41,7 @@
)

templates: Jinja2Templates = Jinja2Templates(directory=str(Path(BASE_DIR, "templates")))
app.mount("/static", StaticFiles(directory=str(Path(BASE_DIR, "static"))), name="static")


@app.get("/", response_class=HTMLResponse)
Expand Down

0 comments on commit e6eba07

Please sign in to comment.