refactor(baseUrl): -> dev2, fix location

This commit is contained in:
mso7nueh
2024-07-31 14:39:36 +03:00
parent c9f293159e
commit 6946060c86
3 changed files with 4 additions and 2 deletions

View File

@@ -1 +1 @@
const String baseUrl = 'https://mobile-stage.eatvio.ru';
const String baseUrl = 'https://dev2.eatvio.com';

View File

@@ -128,6 +128,8 @@ class _CityOfLivingScreenState extends State<CityOfLivingScreen> {
final List<String> locations = await context
.read<RegistrationCubit>()
.getLocationsByCoordinates(locationData.latitude.toString(), locationData.longitude.toString());
final registrationCubit = context.read<RegistrationCubit>();
registrationCubit.updateSheet(registrationCubit.state.sheet.copyWith(location: locations.first));
setState(() {
cityController.text = locations.first;
suggestionsController.suggestions = locations;

View File

@@ -32,7 +32,7 @@ class GlossaryBloc extends Bloc<GlossaryEvent, GlossaryState> {
AppRouter.navigatorKey.currentContext?.goNamed('authScreen');
}
final responseProductGroups = await http.get(
Uri.parse(baseUrl + '/api/glossary/getProductGroups'),
Uri.parse(baseUrl + '/api/glossaries/group/index'),
headers: {
'Authorization': 'Bearer $token',
},