Get all configuration options
()
| 165 | |
| 166 | @app.get("/api/config/options") |
| 167 | async def get_config_options(): |
| 168 | """Get all configuration options""" |
| 169 | return { |
| 170 | "login_types": [ |
| 171 | {"value": "qrcode", "label": "QR Code Login"}, |
| 172 | {"value": "cookie", "label": "Cookie Login"}, |
| 173 | ], |
| 174 | "crawler_types": [ |
| 175 | {"value": "search", "label": "Search Mode"}, |
| 176 | {"value": "detail", "label": "Detail Mode"}, |
| 177 | {"value": "creator", "label": "Creator Mode"}, |
| 178 | ], |
| 179 | "save_options": [ |
| 180 | {"value": "jsonl", "label": "JSONL File"}, |
| 181 | {"value": "json", "label": "JSON File"}, |
| 182 | {"value": "csv", "label": "CSV File"}, |
| 183 | {"value": "excel", "label": "Excel File"}, |
| 184 | {"value": "sqlite", "label": "SQLite Database"}, |
| 185 | {"value": "db", "label": "MySQL Database"}, |
| 186 | {"value": "mongodb", "label": "MongoDB Database"}, |
| 187 | ], |
| 188 | } |
| 189 | |
| 190 | |
| 191 | # Mount static resources - must be placed after all routes |
nothing calls this directly
no outgoing calls
no test coverage detected