mirror of
https://github.com/zoriya/flood.git
synced 2026-06-04 11:35:11 +00:00
server: allow fallback to default or last destination
This commit is contained in:
@@ -9,7 +9,7 @@ export const addTorrentByURLSchema = object({
|
||||
// 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
|
||||
destination: string(),
|
||||
destination: string().optional(),
|
||||
// Tags
|
||||
tags: array(string()).optional(),
|
||||
// Whether destination is the base path [default: false]
|
||||
@@ -27,7 +27,7 @@ export const addTorrentByFileSchema = object({
|
||||
// Torrent files in base64
|
||||
files: array(string()).nonempty(),
|
||||
// Path of destination
|
||||
destination: string(),
|
||||
destination: string().optional(),
|
||||
// Tags
|
||||
tags: array(string()).optional(),
|
||||
// Whether destination is the base path [default: false]
|
||||
|
||||
Reference in New Issue
Block a user