Skip to content

Commit

Permalink
Switched tenant route to REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjeneer committed Dec 3, 2021
1 parent e89bbde commit 274e2a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider/CentralServerProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default class CentralServerProvider {
let tenantLogo = this.tenantLogosCache.get(tenant.subdomain);
if (!tenantLogo) {
// Call backend
const result = await this.axiosInstance.get(`${this.buildCentralRestServerServiceUtilURL(tenant)}/${ServerAction.TENANT_LOGO}`, {
const result = await this.axiosInstance.get(this.buildUtilRestEndpointUrl(ServerRoute.REST_TENANT_LOGO), {
headers: this.buildHeaders(),
responseType: 'arraybuffer',
params: {
Expand Down
1 change: 1 addition & 0 deletions src/types/Server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ export enum ServerRoute {

REST_TENANTS = 'tenants',
REST_TENANT = 'tenants/:id',
REST_TENANT_LOGO = 'tenant/:id/logo',

REST_COMPANIES = 'companies',
REST_COMPANY = 'companies/:id',
Expand Down

0 comments on commit 274e2a7

Please sign in to comment.