This commit is contained in:
2026-06-07 10:46:11 +02:00
parent d40bbd25ea
commit bb422fdd8d
5 changed files with 400 additions and 1 deletions
+20
View File
@@ -261,6 +261,7 @@ dependencies = [
"lazy_static",
"redis",
"ring",
"rmp-serde",
"serde",
"serde_json",
"tokio",
@@ -1004,6 +1005,25 @@ dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "rmp"
version = "0.8.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ba8be72d372b2c9b35542551678538b562e7cf86c3315773cae48dfbfe7790c"
dependencies = [
"num-traits",
]
[[package]]
name = "rmp-serde"
version = "1.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72f81bee8c8ef9b577d1681a70ebbc962c232461e397b22c208c43c04b67a155"
dependencies = [
"rmp",
"serde",
]
[[package]]
name = "rustix"
version = "1.1.4"
+1
View File
@@ -25,3 +25,4 @@ ring = "0.17"
bs62 = "0.1"
byte-unit = "4"
dotenv = "0.15"
rmp-serde = "1.3.1"
+3 -1
View File
@@ -23,6 +23,7 @@ mod csp;
mod health;
mod lock;
mod note;
mod note_v2;
mod status;
mod store;
@@ -42,7 +43,8 @@ async fn main() {
let notes_routes = Router::new()
.route("/", post(note::create))
.route("/{id}", delete(note::delete))
.route("/{id}", get(note::preview));
.route("/{id}", get(note::preview))
.route("/v2/", post(note_v2::create));
let health_routes = Router::new().route("/live", get(health::report_health));
let status_routes = Router::new().route("/status", get(status::get_status));
let api_routes = Router::new()