mirror of
https://github.com/khoj-ai/khoj
synced 2026-04-21 15:57:17 +00:00
Drop trailing slash to get memories via api on web app in production
Trailing slash in api calls to server doesn't work in production behind proxy, only in local next.js dev server.
This commit is contained in:
parent
94bae4789a
commit
0b8cf5112f
1 changed files with 1 additions and 1 deletions
|
|
@ -641,7 +641,7 @@ export default function SettingsView() {
|
|||
const fetchMemories = async () => {
|
||||
try {
|
||||
console.log("Fetching memories...");
|
||||
const response = await fetch('/api/memories/');
|
||||
const response = await fetch('/api/memories');
|
||||
if (!response.ok) throw new Error('Failed to fetch memories');
|
||||
const data = await response.json();
|
||||
setMemories(data);
|
||||
|
|
|
|||
Loading…
Reference in a new issue