aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/data/rest_ds.dart
diff options
context:
space:
mode:
authorMarvin Borner2018-07-21 16:15:36 +0200
committerMarvin Borner2018-07-21 16:15:36 +0200
commitacc5d5e9e960db9525a4368b393cb97fab8658e7 (patch)
tree645de6563b85a64603ff0c9212b3cd6d21d85388 /lib/data/rest_ds.dart
parent4263997c3e419ef1cf7447d447c5582a322acf74 (diff)
Better coding style
Diffstat (limited to 'lib/data/rest_ds.dart')
-rw-r--r--lib/data/rest_ds.dart6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/data/rest_ds.dart b/lib/data/rest_ds.dart
index 7d66d4a..36a82c7 100644
--- a/lib/data/rest_ds.dart
+++ b/lib/data/rest_ds.dart
@@ -6,11 +6,11 @@ import 'package:beam_messenger/models/user.dart';
class RestDatasource {
NetworkUtil _netUtil = new NetworkUtil();
- static final BASE_URL = "http://192.168.0.74:8000";
- static final LOGIN_URL = BASE_URL + "/login";
+ static final baseUrl = "http://192.168.0.74:8000";
+ static final loginUrl = baseUrl + "/login";
Future<User> login(String email, String password) {
- return _netUtil.post(LOGIN_URL,
+ return _netUtil.post(loginUrl,
body: {"email": email, "password": password}).then((dynamic res) {
print(res.toString());
if (res["status"]) throw new Exception(res["message"]);