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:
instant992 2026-06-09 08:09:14 +04:00
parent 51bde550b9
commit e926e7afc6

View file

@ -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);