diff --git a/src/router/index.js b/src/router/index.js
index 30220e6c..8c7d4d20 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -16,6 +16,7 @@ import Mentions from '@/views/Mentions.vue'
import Messages from '@/views/Messages.vue'
import PostSearch from '@/views/PostSearch.vue'
import Join from '@/views/Join.vue'
+import GeneralSettings from '@/views/admin/GeneralSettings.vue'
import ConfirmAccount from '@/views/ConfirmAccount.vue'
import ResetPassword from '@/views/ResetPassword.vue'
import Profile from '@/views/Profile.vue'
@@ -30,6 +31,13 @@ import { localStorageAuth } from '@/composables/stores/auth'
import BanStore from '@/composables/stores/ban'
const routes = [
+ {
+ path: '/admin/settings',
+ alias: '/admin',
+ name: 'GeneralSettings',
+ component: GeneralSettings,
+ meta: { requiresAuth: true, bodyClass: 'general-settings' }
+ },
{
path: '/',
name: 'Boards',
@@ -216,8 +224,6 @@ router.beforeEach(to => {
BanStore.initBanNotice(localStorageAuth().data)
// Redirect to login page if route has meta.requiresAuth set
- console.log(to)
-
if (to.meta.requiresAuth && !localStorageAuth().data.token) {
router.push({
name: 'Login',
diff --git a/src/views/admin/GeneralSettings.vue b/src/views/admin/GeneralSettings.vue
new file mode 100644
index 00000000..b5f60b8f
--- /dev/null
+++ b/src/views/admin/GeneralSettings.vue
@@ -0,0 +1,36 @@
+
+ General Settings
+ Hello World
+ {{config}}
+
+
+
+
+