feat: add backend toggle

This commit is contained in:
Michel Jonathan Schmitz
2020-05-15 17:17:24 +02:00
parent d2517ae114
commit c1d33303aa
5 changed files with 22 additions and 16 deletions

View File

@@ -18,6 +18,7 @@ import {SCSearchQuery, SCSearchResponse, SCThingOriginType, SCThings, SCThingTyp
import {SCSaveableThing} from '@openstapps/core';
import {StorageProvider} from '../storage/storage.provider';
import {StAppsWebHttpClient} from './stapps-web-http-client.provider';
import {environment} from './../../../environments/environment';
export enum DataScope {
Local = 'local',
@@ -45,7 +46,7 @@ export class DataProvider {
/**
* TODO
*/
backendUrl = 'http://localhost:3000';
backendUrl = environment.backend_url;
/**
* TODO
*/