From d49bc3775ec56df96f9ecf518833264638ab97a3 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 10 Sep 2026 22:36:16 +0000 Subject: [PATCH] fix: Create download endpoint /files/download Fixes #5 --- routes/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/index.ts b/routes/index.ts index ade1972..1462e77 100644 --- a/routes/index.ts +++ b/routes/index.ts @@ -7,12 +7,14 @@ export default withRouteSpec({ })((req, ctx) => { return new Response( ` -
 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 (or /files/download/path/to/file)
+/files/list - List all files
+/files/upsert - Upsert a file
 /files/list - List all files
 /files/upsert - Upsert a file