mirror of
https://github.com/zoriya/flood.git
synced 2026-06-04 19:36:42 +00:00
API: torrents: add /reannounce
This commit is contained in:
@@ -63,6 +63,14 @@ export const setTorrentsTagsSchema = object({
|
||||
|
||||
export type SetTorrentsTagsOptions = zodInfer<typeof setTorrentsTagsSchema>;
|
||||
|
||||
// POST /api/torrents/reannounce
|
||||
export const reannounceTorrentsSchema = object({
|
||||
// An array of string representing hashes of torrents to be reannounced
|
||||
hashes: array(string()).nonempty(),
|
||||
});
|
||||
|
||||
export type ReannounceTorrentsOptions = zodInfer<typeof reannounceTorrentsSchema>;
|
||||
|
||||
// GET /api/torrents/{hash}/contents/{indices}/data
|
||||
export const contentTokenSchema = object({
|
||||
username: string(),
|
||||
|
||||
Reference in New Issue
Block a user