mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 19:27:55 +00:00
add autoamtion tasks
This commit is contained in:
@@ -2,8 +2,8 @@ import 'package:flutter/foundation.dart';
|
||||
|
||||
abstract class ApiEndpoints {
|
||||
static const String baseUrl = kReleaseMode
|
||||
? 'https://syncrow-staging.azurewebsites.net/api'
|
||||
: 'https://syncrow-dev.azurewebsites.net/api';
|
||||
? 'https://syncrow-staging.azurewebsites.net'
|
||||
: 'https://syncrow-dev.azurewebsites.net';
|
||||
// static const String baseUrl = 'http://100.107.182.63:4001'; //Localhost
|
||||
|
||||
////////////////////////////////////// Authentication ///////////////////////////////
|
||||
|
||||
@@ -12,7 +12,7 @@ class SceneApi {
|
||||
try {
|
||||
final response = await _httpService.post(
|
||||
path: ApiEndpoints.createScene,
|
||||
body: createSceneModel.toJson(),
|
||||
body: createSceneModel.toMap(),
|
||||
showServerMessage: false,
|
||||
expectedResponseModel: (json) {
|
||||
return json;
|
||||
|
||||
Reference in New Issue
Block a user