Merge pull request #1447 from valadaptive/viewsecrets-rename

Rename /viewsecrets to /api/secrets/view
This commit is contained in:
Cohee 2023-12-04 18:54:37 +02:00 committed by GitHub
commit a846bb3f43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ function updateSecretDisplay() {
}
async function viewSecrets() {
const response = await fetch('/viewsecrets', {
const response = await fetch('/api/secrets/view', {
method: 'POST',
headers: getRequestHeaders(),
});

View File

@ -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);
if (!allowKeysExposure) {