@@ -7,7 +7,7 @@ import 'package:path/path.dart' as path_util;
7
7
8
8
import 'flutterflow_ignore.dart' ;
9
9
10
- const kDefaultEndpoint = 'https://api.flutterflow.io/v1 ' ;
10
+ const kDefaultEndpoint = 'https://api.flutterflow.io/v2 ' ;
11
11
12
12
/// The `FlutterFlowApi` class provides methods for exporting code from a
13
13
/// FlutterFlow project.
@@ -179,7 +179,7 @@ Future<dynamic> _callExport({
179
179
required bool exportAsDebug,
180
180
}) async {
181
181
final body = jsonEncode ({
182
- 'project ' : { 'path' : 'projects/$ projectId ' } ,
182
+ 'project_id ' : projectId,
183
183
if (branchName != null ) 'branch_name' : branchName,
184
184
if (environmentName != null ) 'environment_name' : environmentName,
185
185
if (commitHash != null ) 'commit' : {'path' : 'commits/$commitHash ' },
@@ -328,7 +328,7 @@ Future firebaseDeploy({
328
328
}) async {
329
329
final endpointUrl = Uri .parse (endpoint);
330
330
final body = jsonEncode ({
331
- 'project ' : { 'path' : 'projects/$ projectId ' } ,
331
+ 'project_id ' : projectId,
332
332
'append_rules' : appendRules,
333
333
});
334
334
final result = await _callEndpoint (
0 commit comments