Commit Graph

8 Commits

Author SHA1 Message Date
Jesse Chan
1a878d5423 flood: rearrange, remove misc files and reformat 2020-11-15 23:03:47 +08:00
Jesse Chan
80ffb24d8d API: torrents: schema validate add-urls and add-files endpoints
Those endpoints use extensive amount of user-provided properties
and will be frequently used by third party developers. With Node
15, unhandled promise rejections directly crash the server, as
such, it is safer to schema validate the request before processing
it.

This change also prepares the code paths for later change that adds
destination fallbacks.
2020-11-13 13:27:31 +08:00
Jesse Chan
600e22a6d6 server: services: refrain from using unnecessary throws 2020-11-03 00:38:49 +08:00
Jesse Chan
dc1b939c26 server: qBittorrent, rTorrent: properly hook functions to error handlers 2020-11-03 00:38:46 +08:00
Jesse Chan
017b9d159d server: replace explicit binds with arrow functions 2020-11-02 19:32:33 +08:00
Jesse Chan
d4a8b03928 server: tests: add tests for feed-monitor endpoints 2020-10-24 07:17:57 -05:00
Jesse Chan
265032d3d5 API: feed-monitor: slightly tweak the Rule/Item data structure 2020-10-24 07:17:57 -05:00
Jesse Chan
b0ff983600 server: migrate feedService to TypeScript 2020-10-24 07:17:57 -05:00