Update API Url

Laravel

Open: lib/modules/services/platform/lara/lara.dart
1
class Lara extends PlatformBase {
2
static const String baseUrlImage = "https://yourdomain/uploads/";
3
4
Lara(): super(){
5
baseUrl = "https://yourdomain/api/app";
6
type =PlatformType.lara;
7
}
8
}
Copied!
baseUrlImage: base url to get image
baseUrl: base url to get data

WordPress

Open: lib/modules/services/platform/wp/wp.dart
1
class WP extends PlatformBase {
2
WP() : super() {
3
baseUrl = "https://yourdomain/wp-json/wp/v2/";
4
}
5
}
Copied!
baseUrl: base url to get data
For more REST API Handbook:
Last modified 2mo ago
Copy link