revert: remove /api/v1/register alias — not a valid endpoint, corrected M4 to use /api/v1/files/register

This commit is contained in:
Accusys
2026-05-15 03:12:32 +08:00
parent e5f2bba248
commit 263f017972
2 changed files with 8 additions and 10 deletions

View File

@@ -2804,7 +2804,6 @@ pub async fn start_server(host: &str, port: u16) -> anyhow::Result<()> {
let protected_routes = Router::new()
.route("/api/v1/files/register", post(register_file))
.route("/api/v1/register", post(register_file))
.route("/api/v1/files/lookup", get(lookup_file_by_name))
.route("/api/v1/unregister", post(unregister))
.route("/api/v1/files/scan", get(scan_files))