feat: add object storage REST API

File-based object storage with GET/PUT/DELETE, directory listing,
path traversal protection, and streaming upload up to 2GB.
This commit is contained in:
Fam Zheng
2026-03-04 11:46:55 +00:00
parent ae72e699f4
commit a3c9fbe8e5
2 changed files with 163 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
mod kb;
pub mod obj;
mod projects;
mod settings;
mod timers;
mod workflows;
@@ -28,6 +30,7 @@ pub fn router(state: Arc<AppState>) -> Router {
.merge(workflows::router(state.clone()))
.merge(timers::router(state.clone()))
.merge(kb::router(state.clone()))
.merge(settings::router(state.clone()))
.route("/projects/{id}/files/{*path}", get(serve_project_file))
.route("/projects/{id}/app/{*path}", any(proxy_to_service).with_state(state.clone()))
.route("/projects/{id}/app/", any(proxy_to_service_root).with_state(state))