A cloudflare backed DDNS service written in Rust
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
342 B

use actix_web::{HttpRequest, Json, Result};
use VERSION;
pub mod api;
pub mod router;
#[derive(Serialize)]
pub struct Health {
version: &'static str,
}
pub fn index(_req: &HttpRequest) -> &'static str {
"Hello, World!"
}
pub fn healthcheck(_req: HttpRequest) -> Result<Json<Health>> {
Ok(Json(Health { version: VERSION }))
}