fix: fetching from malformed endpoints
This commit is contained in:
parent
fe1474416f
commit
4eeb3a8c2a
1 changed files with 3 additions and 2 deletions
|
@ -102,9 +102,10 @@ const members = [
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
console.log("channelid: set loading to true");
|
console.log("channelid: set loading to true");
|
||||||
server.value = await fetchWithApi(`servers/${route.params.serverId}`);
|
const serverUrl = `guilds/${route.params.serverId}`;
|
||||||
|
server.value = await fetchWithApi(serverUrl);
|
||||||
|
|
||||||
channels.value = await fetchWithApi(`/channels`);
|
channels.value = await fetchWithApi(`${serverUrl}/channels`);
|
||||||
console.log("channels:", channels.value);
|
console.log("channels:", channels.value);
|
||||||
channel.value = await fetchWithApi(route.path);
|
channel.value = await fetchWithApi(route.path);
|
||||||
console.log("channel:", channel.value);
|
console.log("channel:", channel.value);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue