From 3cc5f4e09c588fa9d66ac2e52bfcbfeeb3b8af5d Mon Sep 17 00:00:00 2001 From: root Date: Thu, 10 Sep 2026 18:07:19 +0000 Subject: [PATCH] fix: create download endpoint /files/download?...... --- routes/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/index.ts b/routes/index.ts index ade1972..4a884d3 100644 --- a/routes/index.ts +++ b/routes/index.ts @@ -9,13 +9,15 @@ export default withRouteSpec({ `
-This is a simple file server API, it has the following API:
 
 /health - Health check
 /files/get?file_path=... - Get a file
+/files/download?file_path=... - Download a file (attachment)
+/files/download/[[file_path]] - Download a file by path (attachment)
 /files/list - List all files
 /files/upsert - Upsert a file
 
+
 /events/list?since=... - List events since a given timestamp
 /events/list?event_type=... - List events filtered by event type