fix: resolve 500 error on /dashboard by using existing index.html template
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/e0466584-8008-4217-bb87-f6d6b9d77387 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
+1
-3
@@ -372,9 +372,7 @@ async def index(request: Request):
|
||||
# Individual page routes
|
||||
@app.get("/dashboard", response_class=HTMLResponse)
|
||||
async def dashboard(request: Request):
|
||||
return templates.TemplateResponse(
|
||||
request, "dashboard.html", {"app_name": settings.PROJECT_NAME}
|
||||
)
|
||||
return templates.TemplateResponse(request, "index.html")
|
||||
|
||||
|
||||
@app.get("/login", response_class=HTMLResponse)
|
||||
|
||||
Reference in New Issue
Block a user