Allow download gallery

This commit is contained in:
2024-08-11 22:01:33 +08:00
parent 271d8202de
commit 94feb24f72
2 changed files with 51 additions and 0 deletions

View File

@@ -60,6 +60,10 @@ function handle_auth(req: Request, ctx: FreshContext) {
if (u.pathname === "/api/tag/rows" && req.method === "GET") {
return true;
}
if (
u.pathname === `/api/export/gallery/zip/${st.info.gid}` &&
req.method === "GET"
) return true;
// Follow API need extra checks.
if (
u.pathname.match(/^\/api\/file\/\d+$/) &&