1. Home
  2. Docs
  3. Listar App
  4. Mobile App
  5. API Settings

API Settings

The application is connecting to default domain demo.listarapp.com . When you installed the application’s backend with your domain name, please change the default domain to your own domain.

  • Listar FluxPro
  • Listar Pro

Open file ./lib/api/http_manager.dark

class HTTPManager {
  BaseOptions baseOptions = BaseOptions(
    baseUrl: "https://demo.listarapp.com/index.php/wp-json",
    connectTimeout: 30000,
    receiveTimeout: 30000,
    headers: {},
    contentType: Headers.jsonContentType,
    responseType: ResponseType.json,
  );

Replace the domain demo.listarapp.com with your domain. Ex: partenaires.g-besoin.com

After change

class HTTPManager {
  BaseOptions baseOptions = BaseOptions(
    baseUrl: "https://partenaires.g-besoin.com/index.php/wp-json",
    connectTimeout: 30000,
    receiveTimeout: 30000,
    headers: {},
    contentType: Headers.jsonContentType,
    responseType: ResponseType.json,
  );

Open file ./app/configs/index.ts

export const Settings = {
  name: 'Listar Pro',
  appVersion: version,
  domain: 'https://demo.listarapp.com',
  defaultLanguage: 'en'
 ..
}

Replace the domain demo.listarapp.com with your domain. Ex: partenaires.g-besoin.com

After changed

export const Settings = {
  name: 'Listar Pro',
  appVersion: version,
  domain: 'https://partenaires.g-besoin.com',
  defaultLanguage: 'en'
 ..
}