Appearance improvements, update of endpoints, and implementation of .well-known for checking API URL #3
1 changed files with 3 additions and 14 deletions
|
@ -21,23 +21,12 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import type { GuildResponse } from '~/types/interfaces';
|
||||||
|
|
||||||
|
|
||||||
const loading = useState("loading", () => false);
|
const loading = useState("loading", () => false);
|
||||||
|
|
||||||
const servers = [
|
const servers: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
|
||||||
{
|
|
||||||
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 = await fetchWithApi("/servers") as { uuid: string, name: string, description: string }[];
|
//const servers = await fetchWithApi("/servers") as { uuid: string, name: string, description: string }[];
|
||||||
//console.log("servers:", servers);
|
//console.log("servers:", servers);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue