Add base server

This commit is contained in:
2023-05-24 14:38:18 +02:00
parent df64d51445
commit 9912428fd6
10 changed files with 1292 additions and 19 deletions

View File

@ -0,0 +1,17 @@
use crate::constants::StaticConstraints;
use actix_web::{HttpResponse, Responder};
/// Default hello route
pub async fn home() -> impl Responder {
HttpResponse::Ok().json("GeneIT API service.")
}
#[derive(Debug, Clone, serde::Serialize, Default)]
struct StaticConfig {
constraints: StaticConstraints,
}
/// Get static configuration
pub async fn static_config() -> impl Responder {
HttpResponse::Ok().json(StaticConfig::default())
}