small fixes so calls make sense

This commit is contained in:
Zoe
2023-01-05 23:18:15 -06:00
parent 108bb6d6fb
commit a3f9a0c35d
11 changed files with 150 additions and 65 deletions

View File

@@ -16,7 +16,7 @@ export default {
},
methods: {
async startDM() {
const { server } = await $fetch('/api/channel/createDM', { method: 'post', body: { partnerId: this.userId } })
const { server } = await $fetch('/api/channels/createDM', { method: 'post', body: { partnerId: this.userId } })
useServerStore().addDM(server)
useRouter().push({ path: '/channel/@me/' + server.id })