diff --git a/app/main.ts b/app/main.ts index c4e6db6..923c593 100644 --- a/app/main.ts +++ b/app/main.ts @@ -9,6 +9,7 @@ import { Router, ROUTER_PROVIDERS} from '@angular/router-deprecated'; import { GOOGLE_MAPS_PROVIDERS, provideLazyMapsAPILoaderConfig } from 'angular2-google-maps/core/index'; +import { AppSettings } from './shared/app.settings'; import 'rxjs/add/operator/catch'; // INFO: Need to use a proper logging module here @@ -19,5 +20,5 @@ bootstrap(AppComponent, [ HTTP_PROVIDERS, SECURE_HTTP_PROVIDERS, GOOGLE_MAPS_PROVIDERS, - provideLazyMapsAPILoaderConfig({ apiKey: 'AIzaSyCKMIEYdB0YPJkDr89n0WuaG3qQDjE9ndY' })]) + provideLazyMapsAPILoaderConfig({ apiKey: AppSettings.GOOGLE_MAP_API_KEY })]) .catch(err => console.error("Bootstrapping Failed " + err)); diff --git a/app/shared/app.settings.ts b/app/shared/app.settings.ts index b02a3ae..015a010 100644 --- a/app/shared/app.settings.ts +++ b/app/shared/app.settings.ts @@ -18,7 +18,12 @@ export class AppSettings { public static get SHADOWCAT_API_BASE(): string { return this.SHADOWCAT_BASE + "api/" } + public static get SHADOWCAT_BASE(): string { return "http://gofetch.cloudapp.net:1337/" } + + public static get GOOGLE_MAP_API_KEY(): string { + return 'AIzaSyCKMIEYdB0YPJkDr89n0WuaG3qQDjE9ndY'; + } }