Fix sponsor check endpoint path (/api/auth/mobile/me)
The auth_mobile router is mounted with prefix /api/auth, so the bare /mobile/me path returned 404. Use the full path.
This commit is contained in:
parent
51bde550b9
commit
e926e7afc6
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ public final class SponsorHelper {
|
||||||
private static void doCheck(long telegramId) {
|
private static void doCheck(long telegramId) {
|
||||||
HttpURLConnection connection = null;
|
HttpURLConnection connection = null;
|
||||||
try {
|
try {
|
||||||
URL url = new URL(BASE_URL + "/mobile/me");
|
URL url = new URL(BASE_URL + "/api/auth/mobile/me");
|
||||||
connection = (HttpURLConnection) url.openConnection();
|
connection = (HttpURLConnection) url.openConnection();
|
||||||
connection.setInstanceFollowRedirects(true);
|
connection.setInstanceFollowRedirects(true);
|
||||||
connection.setConnectTimeout(15000);
|
connection.setConnectTimeout(15000);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue