Get dm link

This commit is contained in:
N Pex 2023-09-29 15:13:12 +00:00
parent 0795c25654
commit 00f95adb09
14 changed files with 422 additions and 26 deletions

View file

@ -6,6 +6,7 @@ import Join from '../components/Join.vue'
import Login from '../components/Login.vue'
import Profile from '../components/Profile.vue'
import CreateRoom from '../components/CreateRoom.vue'
import GetLink from '../components/GetLink.vue'
import util from '../plugins/utils'
@ -54,6 +55,11 @@ const routes = [
title: 'Create room'
}
},
{
path: '/getlink',
name: 'GetLink',
component: GetLink,
},
{
path: '/login',
name: 'Login',
@ -91,7 +97,7 @@ const router = new VueRouter({
});
router.beforeEach((to, from, next) => {
const publicPages = ['/login', '/createroom'];
const publicPages = ['/login', '/createroom', '/getlink'];
var authRequired = !publicPages.includes(to.path);
const loggedIn = router.app.$store.state.auth.user;