mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-24 22:27:55 +00:00
modified UI padding handling approach
added auth API endpoints initialized curtains view for further development
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
abstract class ApiEndpoints {
|
||||
static const String apiKey = '';
|
||||
|
||||
//base
|
||||
static const String baseUrl = 'faris:4001';
|
||||
|
||||
//auth
|
||||
static const String auth = '/authentication/user';
|
||||
static const String signUp = '$auth/signup';
|
||||
static const String signIn = '$auth/login';
|
||||
static const String sendOTP = '$auth/send-otp';
|
||||
static const String verifyOTP = '$auth/verify-otp';
|
||||
static const String forgetPassword = '$auth/forget-password';
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ class HTTPService {
|
||||
return client;
|
||||
}
|
||||
|
||||
Future<T> getRequest<T>({
|
||||
Future<T> get<T>({
|
||||
required String path,
|
||||
Map<String, dynamic>? queryParameters,
|
||||
required T Function(dynamic) expectedResponseModel,
|
||||
@@ -55,7 +55,7 @@ class HTTPService {
|
||||
}
|
||||
}
|
||||
|
||||
Future<T> postRequest<T>(
|
||||
Future<T> post<T>(
|
||||
{required String path,
|
||||
Map<String, dynamic>? queryParameters,
|
||||
Options? options,
|
||||
@@ -74,7 +74,7 @@ class HTTPService {
|
||||
}
|
||||
}
|
||||
|
||||
Future<T> patchRequest<T>(
|
||||
Future<T> patch<T>(
|
||||
{required String path,
|
||||
Map<String, dynamic>? queryParameters,
|
||||
dynamic body,
|
||||
@@ -94,7 +94,7 @@ class HTTPService {
|
||||
}
|
||||
}
|
||||
|
||||
Future<T> downloadRequest<T>(
|
||||
Future<T> download<T>(
|
||||
{required String path,
|
||||
required String savePath,
|
||||
Map<String, dynamic>? queryParameters,
|
||||
|
||||
Reference in New Issue
Block a user