pub fn build_router(state: Arc<AppState>) -> RouterExpand description
Build the main router with every route and middleware layer.
Available routes: POST /upload – multipart upload (rate limited and size limited) POST /api/tus and /api/tus/:id – TUS resumable upload GET /file/:id/info – get file info POST /file/:id/renew – rotate the file ID DELETE /file/:id – delete a file POST /file/:id/delete – delete via HTML form (no JS) GET and POST /api/report – report form POST /api/feedback – feedback form GET /api/health – health check GET /api/config – public config values POST /api/owned-files – bulk lookup of owned files POST /api/register – internal registration for juicehost /api/admin/* – admin panel