From 4e7fbab6ce60315d193e16ff2fb3d903574e20ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs?= Date: Wed, 2 Apr 2025 10:49:20 +0200 Subject: [PATCH] new api endp --- refilc/lib/api/client.dart | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/refilc/lib/api/client.dart b/refilc/lib/api/client.dart index c97dfd50..4a9f5bdc 100644 --- a/refilc/lib/api/client.dart +++ b/refilc/lib/api/client.dart @@ -34,34 +34,34 @@ import 'package:connectivity_plus/connectivity_plus.dart'; class FilcAPI { // base url - static const baseUrl = "https://api.refilcapp.hu"; + static const baseUrl = "https://firka.app/api/v1"; // unused schools list - static const schoolList = "https://api.refilcapp.hu/v3/public/school-list"; + static const schoolList = "0.0.0.0"; // news endpoint - static const news = "https://staticrf-api.pages.dev/news/index.json"; + static const news = "$baseUrl/news/"; // analytics endpoint - static const config = "$baseUrl/v3/private/config"; + static const config = "$baseUrl/config/"; // bug report endpoint, always gets sent, no matter if the user pressed the button or no - static const reportApi = "$baseUrl/v3/private/crash-report"; + static const reportApi = "$baseUrl/crash/legacy"; // updates path to github static const releases = "https://api.github.com/repos/QwIT-Development/app-legacy/releases"; // theme sharing api - static const themeShare = "$baseUrl/v3/shared/theme/add"; - static const themeGet = "$baseUrl/v3/shared/theme/get"; - static const allThemes = "$themeGet/all"; - static const themeByID = "$themeGet/"; + static const themeShare = "$baseUrl/theme/"; + static const themeGet = "$baseUrl/theme/"; + static const allThemes = "$themeGet/theme/"; + static const themeByID = "$themeGet/theme/"; // i don't know why it is separated - static const gradeColorsShare = "$baseUrl/v3/shared/grade-colors/add"; - static const gradeColorsGet = "$baseUrl/v3/shared/grade-colors/get"; - static const allGradeColors = "$gradeColorsGet/all"; + static const gradeColorsShare = "$baseUrl/theme/color/"; + static const gradeColorsGet = "$baseUrl/theme/color/"; + static const allGradeColors = "$gradeColorsGet/"; static const gradeColorsByID = "$gradeColorsGet/"; static Future checkConnectivity() async =>