I'm trying to call the logout api of the sveltekit server, but the url has an unwanted prefix "/en" added. And it's rejected by the server.
I call the POST method, where does the GET method come from? I followed: https://inlang.com/m/dxnzrydw/paraglide-sveltekit-i18n/getting-started
const onLogout = async () => { await wretch('/api/auth/logout').post().json(); };
I'm trying to call the logout api of the sveltekit server, but the url has an unwanted prefix "/en" added. And it's rejected by the server. I call the POST method, where does the GET method come from? I followed: https://inlang.com/m/dxnzrydw/paraglide-sveltekit-i18n/getting-started