init tera and html lsp

This commit is contained in:
Per Stark
2024-12-03 13:26:17 +01:00
parent 5d1e48d493
commit 1fad4a5b1a
7 changed files with 252 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
use axum::Extension;
use tera::{Context, Tera};
use crate::error::ApiError;
pub async fn hello_world_handler(Extension(tera): Extension<Tera>) -> Result<String, ApiError> {
let output = tera.render("hello_world.html", &Context::new()).unwrap();
Ok(output)
}
+1
View File
@@ -1,4 +1,5 @@
pub mod file;
pub mod hello_world;
pub mod ingress;
pub mod query;
pub mod queue_length;