From 279ad1dab6dcae53414f7129e03ea80f3489875f Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 9 Jun 2023 23:47:40 +0800 Subject: [PATCH] add command --- app/command.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/command.py b/app/command.py index 96abc8bb..585ae039 100644 --- a/app/command.py +++ b/app/command.py @@ -40,9 +40,14 @@ class Command(metaclass=Singleton): "description": "同步豆瓣想看", "data": {} }, - "/subscribe": { - "func": SubscribeChain().search, + "/subscriberefresh": { + "func": SubscribeChain().refresh, "description": "刷新所有订阅", + "data": {} + }, + "/subscribesearch": { + "func": SubscribeChain().search, + "description": "搜索所有订阅", "data": { 'state': 'R', }