Skip to content

Commit

Permalink
Update API endpoints for document search
Browse files Browse the repository at this point in the history
  • Loading branch information
wspooong committed Apr 2, 2024
1 parent cdd0eb4 commit b684c55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/layouts/GraphLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function setWindowSize() {
}
async function fetchData() {
const response = await fetch(`/api/v1/search_similarity_network?uid=${route.params.uid}`);
const response = await fetch(`/api/v1/document/similarity?uid=${route.params.uid}`);
if (response.status != 200) {
router.push({ name: '404' })
}
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/SearchLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const not_found_document = {
async function fetchData() {
query.value = route.query.q as string
const response = await fetch(`api/v1/search_title?query=${route.query.q}`);
const response = await fetch(`api/v1/document/title?query=${route.query.q}`);
const jsonData = await response.json()
if (response.status != 200) {
documents.value = [error_document]
Expand Down

0 comments on commit b684c55

Please sign in to comment.