onestudio-co / flutter-bond

Your next Flutter project template!
178 stars 49 forks source link

Make API config better splitting #28

Open Mamoun2020 opened 2 years ago

Mamoun2020 commented 2 years ago

in apiconfig.dart file when put baseurl as a variable, make a split like this :

class ApiConfig{ // we put api url because we need to add image without api urn static const _baseUrl = "http://demo-api.mr-dev.tech/";

static const _apiUrl = _baseUrl+ "api/"; static const users = _apiUrl + 'users'; }

salahamassi commented 1 year ago

open a PR with your suggestion, please