From 9bf9882a74a3803163365294e335ea6340820678 Mon Sep 17 00:00:00 2001 From: singularitycurse26-svg Date: Sun, 19 Jul 2026 03:20:02 -0500 Subject: [PATCH] docs: document download endpoints in API index page Add /files/download?file_path=... and /files/download/[[file_path]] to the API documentation on the index page. Both endpoints were already implemented but not listed in the API docs. Closes #5 /claim #5 --- routes/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/index.ts b/routes/index.ts index ade1972..c445137 100644 --- a/routes/index.ts +++ b/routes/index.ts @@ -15,6 +15,8 @@ This is a simple file server API, it has the following API: /files/get?file_path=... - Get a file /files/list - List all files /files/upsert - Upsert a file +/files/download?file_path=... - Download a file (query param) +/files/download/[[file_path]] - Download a file (path-based) /events/list?since=... - List events since a given timestamp /events/list?event_type=... - List events filtered by event type