Skip to content

Commit

Permalink
same dir
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebou12 authored Sep 23, 2023
1 parent 17ce309 commit 151b4aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

# Initialize FastAPI and Jinja2
app = FastAPI(docs_url="/docs", redoc_url=None)
# smae directory

current_directory = os.path.dirname(os.path.abspath(__file__))
templates=Jinja2Templates(directory=os.path.join(current_directory, "templates"))

app.add_middleware(
Expand Down

0 comments on commit 151b4aa

Please sign in to comment.