tirocinio-canali-steffo-acrate/acrate_rdserver/src/main.rs

20 lines
333 B
Rust
Raw Normal View History

2024-12-18 14:59:42 +00:00
use axum::routing::get;
use acrate_utils::web_server;
mod config;
mod route;
#[tokio::main]
2024-12-18 14:59:42 +00:00
async fn main() {
web_server!(
on: *config::ACRATE_RDSERVER_BIND_ADDRESS(),
2024-12-18 14:59:42 +00:00
templates: [
"rd.html.j2"
],
routes: {
"/*path" => get(route::webfinger_handler),
"/.healthcheck" => get(route::healthcheck_handler)
}
);
}