mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Allow download gallery
This commit is contained in:
@@ -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+$/) &&
|
||||
|
||||
Reference in New Issue
Block a user