Start to create Python client
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
use crate::app_config::AppConfig;
|
||||
use actix_web::HttpResponse;
|
||||
|
||||
pub async fn unsecure_home() -> HttpResponse {
|
||||
@ -5,3 +6,7 @@ pub async fn unsecure_home() -> HttpResponse {
|
||||
.content_type("text/plain")
|
||||
.body("SolarEnergy unsecure central backend")
|
||||
}
|
||||
|
||||
pub async fn secure_origin() -> HttpResponse {
|
||||
HttpResponse::Ok().body(AppConfig::get().secure_origin())
|
||||
}
|
||||
|
Reference in New Issue
Block a user