fix(routes): use tmpl::render for bot detail page

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mukan Erkin TÖRÜK 2026-04-19 20:41:20 +03:00
parent 050cc18051
commit dd95a67f45

View file

@ -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()
} }