Rename API path /api/config to /api/configure

- Update clients calling /api/config to call /api/configure instead
This commit is contained in:
Debanjum Singh Solanky
2024-07-16 15:15:40 +05:30
parent dd31936746
commit de15a7a3fc
12 changed files with 29 additions and 29 deletions

View File

@@ -212,7 +212,7 @@
const headers = { 'Authorization': `Bearer ${khojToken}` };
// Populate type dropdown field with enabled content types only
fetch(`${hostURL}/api/config/types`, { headers })
fetch(`${hostURL}/api/configure/types`, { headers })
.then(response => response.json())
.then(enabled_types => {
// Show warning if no content types are enabled