21 lines
352 B
TypeScript
21 lines
352 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import * as config from '../../configuration.json'
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class ConfigurationService {
|
|
|
|
getApiUrl(): string {
|
|
return config.apiURL
|
|
}
|
|
|
|
getServerAddress(): string {
|
|
return config.serverAddress
|
|
}
|
|
|
|
getTokenTTL(): number {
|
|
return config.tokenTTL
|
|
}
|
|
}
|