feat: update servers array to fetch from /me/guilds
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
9f3059f94c
commit
47d5063bb7
1 changed files with 3 additions and 14 deletions
|
@ -21,23 +21,12 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import type { GuildResponse } from '~/types/interfaces';
|
||||
|
||||
|
||||
const loading = useState("loading", () => false);
|
||||
|
||||
const servers = [
|
||||
{
|
||||
name: "Test",
|
||||
uuid: "0197088b-e4e8-7033-8e6b-7ceb065e9acd"
|
||||
},
|
||||
{
|
||||
name: "Test",
|
||||
uuid: "0197088b-e4e8-7033-8e6b-7ceb065e9acd"
|
||||
},
|
||||
{
|
||||
name: "Test",
|
||||
uuid: "0197088b-e4e8-7033-8e6b-7ceb065e9acd"
|
||||
}
|
||||
];
|
||||
const servers: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
|
||||
|
||||
//const servers = await fetchWithApi("/servers") as { uuid: string, name: string, description: string }[];
|
||||
//console.log("servers:", servers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue