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:
Debanjum 2026-02-24 10:46:42 -08:00
parent 94bae4789a
commit 0b8cf5112f

View file

@ -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);