-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun api.bat
More file actions
30 lines (27 loc) · 817 Bytes
/
Copy pathrun api.bat
File metadata and controls
30 lines (27 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo off
chcp 65001 >nul
REM FastAPI
start "api" cmd /k uvicorn api.main:app --host 127.0.0.1 --port 5000 --workers 4
echo.
echo ===============================
echo Public API (after cloudflared starts):
echo.
echo SoundCloud:
echo http://127.0.0.1:5000/api/stream-sc?url=https://on.soundcloud.com/XXXX
echo.
echo YouTube:
echo http://127.0.0.1:5000/api/stream-yt?url=https://youtu.be/XXXX
echo.
echo Telegram image:
echo http://127.0.0.1:5000/api/stream-tg-image?url=https://t.me/channel/123
echo ===============================
echo.
echo Telegram video:
echo http://X127.0.0.1:5000/api/stream-tg-video?url=https://t.me/channel/123
echo ===============================
echo.
echo Image:
echo http://127.0.0.1:5000/api/stream-image?url=https://t.me/channel/123
echo ===============================
echo.
pause