fix add plugins api
This commit is contained in:
parent
2f7570eec1
commit
b6e1702051
@ -173,7 +173,13 @@ class AutoBackup(_PluginBase):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def get_api(self) -> List[Dict[str, Any]]:
|
def get_api(self) -> List[Dict[str, Any]]:
|
||||||
pass
|
return [{
|
||||||
|
"path": "/backup",
|
||||||
|
"endpoint": self.__backup,
|
||||||
|
"methods": ["GET"],
|
||||||
|
"summary": "MoviePilot备份",
|
||||||
|
"description": "MoviePilot备份",
|
||||||
|
}]
|
||||||
|
|
||||||
def get_form(self) -> Tuple[List[dict], Dict[str, Any]]:
|
def get_form(self) -> Tuple[List[dict], Dict[str, Any]]:
|
||||||
"""
|
"""
|
||||||
|
@ -489,7 +489,13 @@ class CloudflareSpeedTest(_PluginBase):
|
|||||||
}]
|
}]
|
||||||
|
|
||||||
def get_api(self) -> List[Dict[str, Any]]:
|
def get_api(self) -> List[Dict[str, Any]]:
|
||||||
pass
|
return [{
|
||||||
|
"path": "/cloudflare_speedtest",
|
||||||
|
"endpoint": self.__cloudflareSpeedTest,
|
||||||
|
"methods": ["GET"],
|
||||||
|
"summary": "Cloudflare IP优选",
|
||||||
|
"description": "Cloudflare IP优选",
|
||||||
|
}]
|
||||||
|
|
||||||
def get_form(self) -> Tuple[List[dict], Dict[str, Any]]:
|
def get_form(self) -> Tuple[List[dict], Dict[str, Any]]:
|
||||||
"""
|
"""
|
||||||
|
@ -600,7 +600,13 @@ class DirMonitor(_PluginBase):
|
|||||||
}]
|
}]
|
||||||
|
|
||||||
def get_api(self) -> List[Dict[str, Any]]:
|
def get_api(self) -> List[Dict[str, Any]]:
|
||||||
pass
|
return [{
|
||||||
|
"path": "/directory_sync",
|
||||||
|
"endpoint": self.sync_all,
|
||||||
|
"methods": ["GET"],
|
||||||
|
"summary": "目录监控同步",
|
||||||
|
"description": "目录监控同步",
|
||||||
|
}]
|
||||||
|
|
||||||
def get_form(self) -> Tuple[List[dict], Dict[str, Any]]:
|
def get_form(self) -> Tuple[List[dict], Dict[str, Any]]:
|
||||||
return [
|
return [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user