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.

16 lines
419 B

  1. extern crate actix_web;
  2. use actix_web::middleware::Logger;
  3. use actix_web::{http, App};
  4. use server;
  5. pub fn create() -> App {
  6. actix_web::App::new()
  7. .middleware(Logger::default())
  8. .scope("api/", |api_scope| server::api::route(api_scope))
  9. .resource("/health", |r| {
  10. r.method(http::Method::GET).with(server::healthcheck)
  11. })
  12. .resource("/", |r| r.f(server::index))
  13. }