Return JSON for (almost) all webAPI endpoints.
Compare changes
+ 87
− 23
@@ -7,10 +7,12 @@ use actix_web::{
@@ -19,29 +21,28 @@ async fn delete_scenery(data: web::Data<AppState>) -> impl Responder {
@@ -52,15 +53,19 @@ async fn post_global_conf(
@@ -69,7 +74,8 @@ async fn get_analyzer(data: web::Data<AppState>, index: web::Path<usize>) -> imp
@@ -80,7 +86,10 @@ async fn add_analyzer(
@@ -92,13 +101,18 @@ async fn delete_analyzer(
@@ -111,7 +125,6 @@ async fn post_opmfile(
@@ -123,3 +136,54 @@ pub fn config(cfg: &mut ServiceConfig<'_>) {