globals.dart 357 B

12345678910111213
  1. library my_prj.globals;
  2. import 'dart:convert';
  3. String USER_LOGIN = 'user';
  4. String PASS_LOGIN = 'password';
  5. var path = 'http://localhost:8080/api/v1/';
  6. var auth = 'Basic ${base64Encode(utf8.encode('$USER_LOGIN:$PASS_LOGIN'))}';
  7. Map<String, String> headers = {
  8. 'content-type': 'application/json',
  9. 'accept': 'application/json',
  10. 'authorization': auth
  11. };