-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change suse_credentials endpoint to suse_manager under settings
- Loading branch information
Showing
10 changed files
with
60 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
import { networkClient } from '@lib/network'; | ||
|
||
export const getSettings = () => | ||
networkClient.get(`/settings/suma_credentials`); | ||
export const getSettings = () => networkClient.get(`/settings/suse_manager`); | ||
|
||
export const saveSettings = (settings) => | ||
networkClient.post(`/settings/suma_credentials`, settings); | ||
networkClient.post(`/settings/suse_manager`, settings); | ||
|
||
export const updateSettings = (settings) => | ||
networkClient.patch(`/settings/suma_credentials`, settings); | ||
networkClient.patch(`/settings/suse_manager`, settings); | ||
|
||
export const clearSettings = () => | ||
networkClient.delete(`/settings/suma_credentials`); | ||
networkClient.delete(`/settings/suse_manager`); | ||
|
||
export const testConnection = () => | ||
networkClient.post(`/settings/suma_credentials/test`); | ||
networkClient.post(`/settings/suse_manager/test`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.