Skip to content

Commit

Permalink
fix: 基础目录设置
Browse files Browse the repository at this point in the history
  • Loading branch information
vastsa committed Jan 18, 2024
1 parent c6d538b commit 7998607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async def startup_event():
@app.get('/')
async def index():
return HTMLResponse(
content=open('./fcb-fronted/dist/index.html', 'r', encoding='utf-8').read()
content=open(BASE_DIR / './fcb-fronted/dist/index.html', 'r', encoding='utf-8').read()
.replace('{{title}}', str(settings.name))
.replace('{{description}}', str(settings.description))
.replace('{{keywords}}', str(settings.keywords))
Expand Down

0 comments on commit 7998607

Please sign in to comment.