mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00

Added a new StatusModel class to represent device statuses and implemented functionality to fetch and update device statuses in the DevicesCubit and DeviceModel classes. Also updated UI components to display device status information.
26 lines
1008 B
Dart
26 lines
1008 B
Dart
abstract class ApiEndpoints {
|
|
static const String baseUrl = 'https://syncrow.azurewebsites.net';
|
|
|
|
// Authentication
|
|
static const String signUp = '$baseUrl/authentication/user/signup';
|
|
static const String login = '$baseUrl/authentication/user/login';
|
|
static const String deleteUser = '$baseUrl/authentication/user/delete/{id}';
|
|
static const String sendOtp = '$baseUrl/authentication/user/send-otp';
|
|
static const String verifyOtp = '$baseUrl/authentication/user/verify-otp';
|
|
static const String forgetPassword =
|
|
'$baseUrl/authentication/user/forget-password';
|
|
|
|
// Spaces
|
|
static const String spaces = '$baseUrl/home';
|
|
static const String rooms = '$baseUrl/room';
|
|
|
|
// Devices
|
|
static const String control = '$baseUrl/device/control';
|
|
static const String devicesByRoom = '$baseUrl/device/room';
|
|
// static const String deviceStatus = '$baseUrl/device/status/';
|
|
static const String deviceStatus = '$baseUrl/device/';
|
|
|
|
//groups
|
|
static const String groups = '$baseUrl/group';
|
|
}
|