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

@@ -96,7 +96,7 @@ export default {
methods: {
async createServer() {
const serverStore = useServerStore();
const { server } = await $fetch('/api/channel/create', { method: 'post', body: { serverName: this.serverName } })
const { server } = await $fetch('/api/channels/create', { method: 'post', body: { serverName: this.serverName } })
this.createServerModelOpen = false;
this.serverName = '';
serverStore.addServer(server)