implement fixes for project nautilus integration
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
[package]
|
||||
name = "server"
|
||||
edition = "2021"
|
||||
version = "0.1.0"
|
||||
authors = ["Sergey <me@sergeysav.com>"]
|
||||
version.workspace = true
|
||||
authors.workspace = true
|
||||
|
||||
[dependencies]
|
||||
actix-web = { workspace = true, features = [ ] }
|
||||
actix-ws = { workspace = true }
|
||||
anyhow = { workspace = true }
|
||||
api = { path = "../api" }
|
||||
api = { workspace = true }
|
||||
chrono = { workspace = true }
|
||||
derive_more = { workspace = true, features = ["from"] }
|
||||
fern = { workspace = true, features = ["colored"] }
|
||||
|
||||
@@ -3,7 +3,7 @@ use crate::http::error::HttpServerResultError;
|
||||
use actix_web::{get, post, web, Responder};
|
||||
use std::sync::Arc;
|
||||
|
||||
#[post("/cmd/{name:[\\w\\d/_-]+}")]
|
||||
#[post("/cmd/{name:[\\.\\w\\d/_-]+}")]
|
||||
pub(super) async fn send_command(
|
||||
command_service: web::Data<Arc<CommandManagementService>>,
|
||||
name: web::Path<String>,
|
||||
@@ -23,7 +23,7 @@ pub(super) async fn get_all(
|
||||
Ok(web::Json(command_service.get_commands()?))
|
||||
}
|
||||
|
||||
#[get("/cmd/{name:[\\w\\d/_-]+}")]
|
||||
#[get("/cmd/{name:[\\.\\w\\d/_-]+}")]
|
||||
pub(super) async fn get_one(
|
||||
command_service: web::Data<Arc<CommandManagementService>>,
|
||||
name: web::Path<String>,
|
||||
|
||||
@@ -9,7 +9,7 @@ use std::time::Duration;
|
||||
use tokio::time::timeout;
|
||||
use uuid::Uuid;
|
||||
|
||||
#[get("/tlm/info/{name:[\\w\\d/_-]+}")]
|
||||
#[get("/tlm/info/{name:[\\.\\w\\d/_-]+}")]
|
||||
pub(super) async fn get_tlm_definition(
|
||||
data: web::Data<Arc<TelemetryManagementService>>,
|
||||
name: web::Path<String>,
|
||||
|
||||
Reference in New Issue
Block a user