diff --git a/resources/js/middleware/auth.js b/resources/js/middleware/auth.js
index 854418b..bdd22c8 100644
--- a/resources/js/middleware/auth.js
+++ b/resources/js/middleware/auth.js
@@ -5,6 +5,9 @@ function auth(to, from, next){
if (to.path === '/'){
next({path: '/wishlist'});
}
+ if (to.path.includes('/api')){
+ next();
+ }
if (to.path === '/auth_options' || to.path === '/login' || to.path === '/registration'){
if (useUserStore().token !== null){
next({path: '/wishlist'});
diff --git a/resources/publicWishlist.js b/resources/publicWishlist.js
index d5e129f..9f4de12 100644
--- a/resources/publicWishlist.js
+++ b/resources/publicWishlist.js
@@ -16,6 +16,13 @@ const vuetify = createVuetify({
const pinia = createPinia()
-import router from './js/router.js'
+// import router from './js/router.js'
+const routes = [
+]
+
+const router = createRouter({
+ history: createMemoryHistory(),
+ routes,
+})
createApp(PublicApp).use(vuetify).use(router).use(pinia).mount("#app")
diff --git a/resources/views/Public.vue b/resources/views/Public.vue
index 0bf9519..cc5fafa 100644
--- a/resources/views/Public.vue
+++ b/resources/views/Public.vue
@@ -44,7 +44,7 @@
-
+
@@ -53,7 +53,7 @@