diff --git a/src/api/routes.rs b/src/api/routes.rs index 9a64a3e..8635ea8 100644 --- a/src/api/routes.rs +++ b/src/api/routes.rs @@ -97,7 +97,7 @@ async fn bot_detail_handler( None => false, }; if authed { - axum::response::Html(include_str!("../web/bot.html")).into_response() + axum::response::Html(crate::tmpl::render("bot.html", "bots")).into_response() } else { Redirect::to("/").into_response() }