Configured Api settings
This commit is contained in:
@@ -6,7 +6,7 @@ class ApiConfig {
|
|||||||
const ApiConfig({
|
const ApiConfig({
|
||||||
this.scheme = 'http',
|
this.scheme = 'http',
|
||||||
this.host = 'localhost',
|
this.host = 'localhost',
|
||||||
this.port = 5000,
|
this.port = 5118,
|
||||||
this.basePath = '',
|
this.basePath = '',
|
||||||
this.timeout = const Duration(seconds: 15),
|
this.timeout = const Duration(seconds: 15),
|
||||||
this.defaultHeaders = const {},
|
this.defaultHeaders = const {},
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ void main() {
|
|||||||
|
|
||||||
// Rest API of the backend. Plain http is fine, we only talk inside of a
|
// Rest API of the backend. Plain http is fine, we only talk inside of a
|
||||||
// trusted network.
|
// trusted network.
|
||||||
AcApi.configure(const ApiConfig(host: 'localhost', port: 5000));
|
AcApi.configure(const ApiConfig(host: 'localhost', port: 5118));
|
||||||
|
|
||||||
runApp(const MainApp());
|
runApp(const MainApp());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user