2024-12-18 14:59:42 +00:00
|
|
|
use axum::routing::get;
|
|
|
|
use acrate_utils::web_server;
|
2024-11-14 02:50:59 +00:00
|
|
|
|
|
|
|
mod config;
|
|
|
|
mod route;
|
|
|
|
|
|
|
|
#[tokio::main]
|
2024-12-18 14:59:42 +00:00
|
|
|
async fn main() {
|
|
|
|
web_server!(
|
2024-12-18 15:05:32 +00:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
);
|
2024-11-14 02:50:59 +00:00
|
|
|
}
|