fix: set credentials and change get to post

This commit is contained in:
Polianin Nikita 2024-09-01 00:30:37 +03:00
parent 916aa2fd9c
commit 207f54ae17

View File

@ -17,6 +17,7 @@ export default class SetupService extends ApiService {
let request = this.createRequestBuilder() let request = this.createRequestBuilder()
.setEndpoint('CheckToken') .setEndpoint('CheckToken')
.setQueryParams({token: token}) .setQueryParams({token: token})
.setWithCredentials()
.build; .build;
return this.get<boolean>(request); return this.get<boolean>(request);
@ -49,7 +50,7 @@ export default class SetupService extends ApiService {
.setWithCredentials() .setWithCredentials()
.build; .build;
return this.get<boolean>(request); return this.post<boolean>(request);
} }
public setRedis(data: CacheRequest) { public setRedis(data: CacheRequest) {