fix(routes): use tmpl::render for bot detail page
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
050cc18051
commit
dd95a67f45
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ async fn bot_detail_handler(
|
||||||
None => false,
|
None => false,
|
||||||
};
|
};
|
||||||
if authed {
|
if authed {
|
||||||
axum::response::Html(include_str!("../web/bot.html")).into_response()
|
axum::response::Html(crate::tmpl::render("bot.html", "bots")).into_response()
|
||||||
} else {
|
} else {
|
||||||
Redirect::to("/").into_response()
|
Redirect::to("/").into_response()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue