Skip to content

Commit

Permalink
feat: connection url
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidJoker committed Apr 28, 2024
1 parent 30e23dc commit 24a7f14
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions pages/connect/[id].vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<script setup lang="ts">
const route = useRoute()
// TODO: Create Session
// Step 1. Check Session
const valid = useFetch("http://localhost:3000/api/session/valid", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
session: route.params.id,
}),
})
</script>
<template>
<h1>Test Connect</h1>
<p>id: {{ route.params.id }}</p>
</template>
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Audio Server
</NuxtLink>
<NuxtLink to="https://discord.gg/tAdf2saYup" class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded inline-block ml-4">
<img src="/discord.svg" alt="Video" class="w-6 h-6 inline-block mr-2" />
<img src="/assets/discord.svg" alt="Video" class="w-6 h-6 inline-block mr-2" />
Discord
</NuxtLink>
</div>
Expand Down
1 change: 1 addition & 0 deletions public/assets/discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/discord.svg

This file was deleted.

0 comments on commit 24a7f14

Please sign in to comment.