You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
440 B
Dart
14 lines
440 B
Dart
5 years ago
|
import 'package:doctor_app_flutter/interceptor/http_interceptor.dart';
|
||
|
import 'package:http/http.dart';
|
||
|
|
||
|
class AppClient {
|
||
|
static const String BASE_URL = "https://hmgwebservices.com/";
|
||
|
|
||
|
static Client client = HttpInterceptor().getClient();
|
||
|
|
||
|
static Future<Response> post(dynamic path, {dynamic body}) async {
|
||
|
String _fullUrl = BASE_URL + path;
|
||
|
final response = await client.post(_fullUrl, body: body);
|
||
|
return response;
|
||
|
}
|
||
|
}
|