Skip to content

Commit

Permalink
PMM-12710 Update settings endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
YashSartanpara1 committed May 15, 2024
1 parent f94a83f commit 6b80ebc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pmm-app/src/shared/core/Settings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { API } from './constants';
import { Settings, SettingsAPIResponse, SettingsPayload } from './types';

export const SettingsService = {
async getSettings(disableNotifications = false): Promise<Settings> {
const { settings } = await apiRequest.post(API.SETTINGS, {}, disableNotifications) as SettingsAPIResponse;
async getSettings(): Promise<Settings> {
const { settings } = await apiRequest.get(API.SETTINGS) as SettingsAPIResponse;

return toModel(settings);
},
Expand Down
3 changes: 1 addition & 2 deletions pmm-app/src/shared/core/constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Databases } from './types';

export const API = {
ALERTMANAGER: '/alertmanager/api/v2',
SETTINGS: '/v1/Settings/Get',
SETTINGS: '/v1/server/settings',
};

export const DATABASE_LABELS = {
Expand Down

0 comments on commit 6b80ebc

Please sign in to comment.