feat: add server list page

This commit is contained in:
tilo committed 2025-12-25 23:57:47 +01:00
1 parent e7fe00c48d
commit c07d6072fd
18 files changed
+2193 -692

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
use actix_web::{Responder, get};
use crate::helper;
#[get("/api/servers")]
pub async fn list_servers() -> impl Responder {
let config = helper::get_authed_api_config().await.unwrap();
let response =
scp_core::apis::default_api::api_v1_servers_get(&config, None, None, None, None, None)
.await
.unwrap();
serde_json::to_string(&response).unwrap()
}