diff options
Diffstat (limited to 'client/src/app/core/config')
-rw-r--r-- | client/src/app/core/config/config.service.ts | 26 | ||||
-rw-r--r-- | client/src/app/core/config/index.ts | 1 |
2 files changed, 0 insertions, 27 deletions
diff --git a/client/src/app/core/config/config.service.ts b/client/src/app/core/config/config.service.ts deleted file mode 100644 index 3c479bcb8..000000000 --- a/client/src/app/core/config/config.service.ts +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | import { Injectable } from '@angular/core' | ||
2 | import { HttpClient } from '@angular/common/http' | ||
3 | |||
4 | import { ServerConfig } from '../../../../../shared' | ||
5 | |||
6 | @Injectable() | ||
7 | export class ConfigService { | ||
8 | private static BASE_CONFIG_URL = API_URL + '/api/v1/config/' | ||
9 | |||
10 | private config: ServerConfig = { | ||
11 | signup: { | ||
12 | allowed: false | ||
13 | } | ||
14 | } | ||
15 | |||
16 | constructor (private http: HttpClient) {} | ||
17 | |||
18 | loadConfig () { | ||
19 | this.http.get<ServerConfig>(ConfigService.BASE_CONFIG_URL) | ||
20 | .subscribe(data => this.config = data) | ||
21 | } | ||
22 | |||
23 | getConfig () { | ||
24 | return this.config | ||
25 | } | ||
26 | } | ||
diff --git a/client/src/app/core/config/index.ts b/client/src/app/core/config/index.ts deleted file mode 100644 index 3724e12f2..000000000 --- a/client/src/app/core/config/index.ts +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | export * from './config.service' | ||