diff --git a/ahserver/filedownload.py b/ahserver/filedownload.py index 20c0eaf..97c7ade 100644 --- a/ahserver/filedownload.py +++ b/ahserver/filedownload.py @@ -60,7 +60,8 @@ async def path_download(request, kw, *params): fp = fs.realPath(path) return await file_download(request, fp) -rf = RegisterFunction('download_path', path_download) +rf = RegisterFunction() +rf.register('download_path', path_download)