tirocinio-canali-steffo-acrate/acrate_rdserver/src/main.rs
Stefano Pigozzi 72f12b6de7
Merge branch 'main' into feature/apub-inbox
# Conflicts:
#	.idea/acrate.iml
#	Cargo.toml
#	acrate_rdserver/src/config.rs
#	acrate_rdserver/src/main.rs
2024-12-18 16:05:32 +01:00

19 lines
333 B
Rust

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