fix: fetching from malformed endpoints, again
This commit is contained in:
parent
aa710e0a4d
commit
3c65a700ff
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ const route = useRoute();
|
||||||
|
|
||||||
const loading = useState("loading");
|
const loading = useState("loading");
|
||||||
|
|
||||||
const channelUrlPath = `/channels/${route.params.channelId}`;
|
const channelUrlPath = `channels/${route.params.channelId}`;
|
||||||
|
|
||||||
const server = ref<GuildResponse | undefined>();
|
const server = ref<GuildResponse | undefined>();
|
||||||
const channels = ref<ChannelResponse[] | undefined>();
|
const channels = ref<ChannelResponse[] | undefined>();
|
||||||
|
@ -107,7 +107,7 @@ onMounted(async () => {
|
||||||
|
|
||||||
channels.value = await fetchWithApi(`${guildUrl}/channels`);
|
channels.value = await fetchWithApi(`${guildUrl}/channels`);
|
||||||
console.log("channels:", channels.value);
|
console.log("channels:", channels.value);
|
||||||
channel.value = await fetchWithApi(route.path);
|
channel.value = await fetchWithApi(`/channels/${route.params.channelId}`);
|
||||||
console.log("channel:", channel.value);
|
console.log("channel:", channel.value);
|
||||||
|
|
||||||
console.log("channelid: channel:", channel);
|
console.log("channelid: channel:", channel);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue