Stefano Pigozzi
72f12b6de7
# Conflicts: # .idea/acrate.iml # Cargo.toml # acrate_rdserver/src/config.rs # acrate_rdserver/src/main.rs
19 lines
333 B
Rust
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)
|
|
}
|
|
);
|
|
}
|