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

@@ -697,7 +697,7 @@ Optionally apply CALLBACK with JSON parsed response and CBARGS."
(defun khoj--get-enabled-content-types ()
"Get content types enabled for search from API."
(khoj--call-api "/api/config/types" "GET" nil `(lambda (item) (mapcar #'intern item))))
(khoj--call-api "/api/configure/types" "GET" nil `(lambda (item) (mapcar #'intern item))))
(defun khoj--query-search-api-and-render-results (query content-type buffer-name &optional rerank is-find-similar)
"Query Khoj Search API with QUERY, CONTENT-TYPE and RERANK as query params.