mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
add missing change
This commit is contained in:
parent
e2cda2c297
commit
4b59cf2377
@ -18,6 +18,7 @@ export class BackendClient {
|
||||
private static instance: BackendClient
|
||||
client: GraphQLClient
|
||||
logger: Logger
|
||||
urlValue: string
|
||||
|
||||
/**
|
||||
* The Singleton's constructor should always be private to prevent direct
|
||||
@ -25,8 +26,10 @@ export class BackendClient {
|
||||
*/
|
||||
private constructor() {
|
||||
this.logger = getLogger(`${LOG4JS_BASE_CATEGORY}.client.BackendClient`)
|
||||
this.logger.addContext('url', CONFIG.BACKEND_SERVER_URL)
|
||||
this.client = new GraphQLClient(CONFIG.BACKEND_SERVER_URL, {
|
||||
this.urlValue = `http://localhost:${CONFIG.PORT}`
|
||||
this.logger.addContext('url', this.urlValue)
|
||||
|
||||
this.client = new GraphQLClient(this.urlValue, {
|
||||
headers: {
|
||||
'content-type': 'application/json',
|
||||
},
|
||||
@ -38,6 +41,10 @@ export class BackendClient {
|
||||
})
|
||||
}
|
||||
|
||||
public get url(): string {
|
||||
return this.url
|
||||
}
|
||||
|
||||
/**
|
||||
* The static method that controls the access to the singleton instance.
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user