Put core/app.py
Browse files- core/app.py +3 -3
core/app.py
CHANGED
|
@@ -125,7 +125,7 @@ def select_solutions(name: str | None) -> list:
|
|
| 125 |
)
|
| 126 |
|
| 127 |
|
| 128 |
-
@app.get("/")
|
| 129 |
def index():
|
| 130 |
return {
|
| 131 |
"service": "kick-vod-downloader",
|
|
@@ -208,7 +208,7 @@ def _curl_cffi_version() -> str | None:
|
|
| 208 |
return None
|
| 209 |
|
| 210 |
|
| 211 |
-
@app.get("/formats")
|
| 212 |
async def formats(
|
| 213 |
url: str = Query(
|
| 214 |
...,
|
|
@@ -272,7 +272,7 @@ async def formats(
|
|
| 272 |
}
|
| 273 |
|
| 274 |
|
| 275 |
-
@app.get("/stream")
|
| 276 |
async def stream(
|
| 277 |
url: str = Query(
|
| 278 |
...,
|
|
|
|
| 125 |
)
|
| 126 |
|
| 127 |
|
| 128 |
+
@app.get("/", tags=["diagnostics"], summary="Service index")
|
| 129 |
def index():
|
| 130 |
return {
|
| 131 |
"service": "kick-vod-downloader",
|
|
|
|
| 208 |
return None
|
| 209 |
|
| 210 |
|
| 211 |
+
@app.get("/formats", tags=["diagnostics"], summary="Which solutions can see this url (no sizes)")
|
| 212 |
async def formats(
|
| 213 |
url: str = Query(
|
| 214 |
...,
|
|
|
|
| 272 |
}
|
| 273 |
|
| 274 |
|
| 275 |
+
@app.get("/stream", tags=["proxy"], summary="Remux and stream the video through this service (CPU-bound)")
|
| 276 |
async def stream(
|
| 277 |
url: str = Query(
|
| 278 |
...,
|