Merge pull request #1447 from valadaptive/viewsecrets-rename
Rename /viewsecrets to /api/secrets/view
This commit is contained in:
commit
a846bb3f43
|
@ -49,7 +49,7 @@ function updateSecretDisplay() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function viewSecrets() {
|
async function viewSecrets() {
|
||||||
const response = await fetch('/viewsecrets', {
|
const response = await fetch('/api/secrets/view', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: getRequestHeaders(),
|
headers: getRequestHeaders(),
|
||||||
});
|
});
|
||||||
|
|
|
@ -169,7 +169,7 @@ function registerEndpoints(app, jsonParser) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.post('/viewsecrets', jsonParser, async (_, response) => {
|
app.post('/api/secrets/view', jsonParser, async (_, response) => {
|
||||||
const allowKeysExposure = getConfigValue('allowKeysExposure', false);
|
const allowKeysExposure = getConfigValue('allowKeysExposure', false);
|
||||||
|
|
||||||
if (!allowKeysExposure) {
|
if (!allowKeysExposure) {
|
||||||
|
|
Loading…
Reference in New Issue