Added endpoint field on login page
This commit is contained in:
parent
bce8e97368
commit
b755d60939
2 changed files with 28 additions and 7 deletions
|
|
@ -8,9 +8,8 @@ class ApiController extends GetxController {
|
|||
|
||||
final apiStorageBox = GetStorage();
|
||||
|
||||
final _endPoint = "http://127.0.0.1:8000".obs;
|
||||
String get endPoint => _endPoint.value;
|
||||
set endPoint(String value) => _endPoint.value = value;
|
||||
String get endPoint => apiStorageBox.read<String>("endPoint") ?? "";
|
||||
set endPoint(String value) => apiStorageBox.write("endPoint", value);
|
||||
|
||||
String get token => apiStorageBox.read<String>("accessToken") ?? "";
|
||||
set token(String value) => apiStorageBox.write("accessToken", value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue