{"routes":[{"path":"/","name":"rootRoute","description":"Root route of the API","returns":"{ routes: RouteInfo[] }","subpaths":[{"path":"/admin-ips","name":"admin-ips","description":"Returns a list of authorized admin IP addresses","returns":"string[]"},{"path":"/blob","name":"blob","subpaths":[{"path":"/blob/upload","name":"upload","description":"Uploads a new binary blob and returns its unique URL","returns":"{ url: string }"},{"path":"/blob/{fileid}","name":"fileid","description":"Retrieves a blob by its unique ID","returns":"binary (blob content with detected MIME type)"}]},{"path":"/files","name":"files","description":"Lists available files (with optional gallery and convert filters)","returns":"FileInfo[] { name, isTemp, createdAt, size, ext }","subpaths":[{"path":"/files/delete","name":"delete","subpaths":[{"path":"/files/delete/{filename}","name":"filename","description":"Moves a file to the deleted directory","returns":"text/plain (success message)"}]},{"path":"/files/download","name":"download","subpaths":[{"path":"/files/download/{filename}","name":"filename","description":"Downloads a specific file","returns":"binary (file as attachment)"}]},{"path":"/files/permanent-delete","name":"permanent-delete","subpaths":[{"path":"/files/permanent-delete/{filename}","name":"filename","description":"Permanently deletes a file from the system","returns":"text/plain (success message)"}]},{"path":"/files/upload","name":"upload","description":"Uploads a new file to the server","returns":"text/plain (success message per file)"},{"path":"/files/view","name":"view","subpaths":[{"path":"/files/view/{filename}","name":"filename","description":"Previews a specific file (handles video/image types)","returns":"binary (file preview with detected Content-Type)"}]}]},{"path":"/gallery","name":"gallery","description":"Lists all gallery items","returns":"GalleryFileInfo[] { name, createdAt, size }","subpaths":[{"path":"/gallery/get","name":"get","subpaths":[{"path":"/gallery/get/{filename}","name":"filename","description":"Retrieves a specific gallery item","returns":"binary (image/video content)"}]},{"path":"/gallery/upload","name":"upload","description":"Uploads a new item to the gallery","returns":"text/plain (success message)"}]},{"path":"/page-visits","name":"page-visits","subpaths":[{"path":"/page-visits/{id}","name":"id","description":"Tracks and returns unique visitor counts for a given page ID","returns":"{ visits: number, visitorIds: string[] }"}]},{"path":"/system-prompt","name":"system-prompt","description":"Returns the system prompt configuration","returns":"text/plain (system prompt content)"}]}]}
