Commit 9a3f8a9
committed
fix(telegram): always register session generation endpoints
Session endpoints (/proxy/telegram/session/{start,verify,2fa,cancel})
were only registered when enable_telegram=True (which defaults to False).
POST requests to those paths fell through to the StaticFiles catch-all
mount, which only handles GET/HEAD and returned 405 Method Not Allowed.
Split session routes into a separate telegram_session_router that is
always included unconditionally, independent of enable_telegram. This
allows users to generate a session string via the web UI before setting
enable_telegram=True — which is the intended workflow.
Closes #2801 parent c4d318e commit 9a3f8a9
2 files changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
312 | 318 | | |
313 | 319 | | |
314 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
904 | 911 | | |
905 | 912 | | |
906 | 913 | | |
907 | | - | |
| 914 | + | |
908 | 915 | | |
909 | 916 | | |
910 | 917 | | |
| |||
995 | 1002 | | |
996 | 1003 | | |
997 | 1004 | | |
998 | | - | |
| 1005 | + | |
999 | 1006 | | |
1000 | 1007 | | |
1001 | 1008 | | |
| |||
1053 | 1060 | | |
1054 | 1061 | | |
1055 | 1062 | | |
1056 | | - | |
| 1063 | + | |
1057 | 1064 | | |
1058 | 1065 | | |
1059 | 1066 | | |
| |||
1098 | 1105 | | |
1099 | 1106 | | |
1100 | 1107 | | |
1101 | | - | |
| 1108 | + | |
1102 | 1109 | | |
1103 | 1110 | | |
1104 | 1111 | | |
| |||
0 commit comments