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
+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()