Get list of supported platforms
()
| 149 | |
| 150 | @app.get("/api/config/platforms") |
| 151 | async def get_platforms(): |
| 152 | """Get list of supported platforms""" |
| 153 | return { |
| 154 | "platforms": [ |
| 155 | {"value": "xhs", "label": "Xiaohongshu", "icon": "book-open"}, |
| 156 | {"value": "dy", "label": "Douyin", "icon": "music"}, |
| 157 | {"value": "ks", "label": "Kuaishou", "icon": "video"}, |
| 158 | {"value": "bili", "label": "Bilibili", "icon": "tv"}, |
| 159 | {"value": "wb", "label": "Weibo", "icon": "message-circle"}, |
| 160 | {"value": "tieba", "label": "Baidu Tieba", "icon": "messages-square"}, |
| 161 | {"value": "zhihu", "label": "Zhihu", "icon": "help-circle"}, |
| 162 | ] |
| 163 | } |
| 164 | |
| 165 | |
| 166 | @app.get("/api/config/options") |
nothing calls this directly
no outgoing calls
no test coverage detected