mirror of
https://github.com/zoriya/flood.git
synced 2025-12-05 23:06:20 +00:00
schema: api: torrents: add-urls: remove URL validation
"Add by URLs" also accepts local file path.
This commit is contained in:
@@ -5,7 +5,7 @@ import type {infer as zodInfer} from 'zod';
|
||||
// POST /api/torrents/add-urls
|
||||
export const addTorrentByURLSchema = object({
|
||||
// URLs to download torrents from
|
||||
urls: array(string().url()).nonempty(),
|
||||
urls: array(string()).nonempty(),
|
||||
// Cookies to attach to requests, arrays of strings in the format "name=value" with domain as key
|
||||
cookies: record(array(string())).optional(),
|
||||
// Path of destination
|
||||
|
||||
Reference in New Issue
Block a user