From 2cb8b1dc15d51b1cfec6d492af5c45d7860054e3 Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 31 Jan 2023 17:13:34 +0100 Subject: [PATCH] =?UTF-8?q?auth:=20dodano=20guard=20=C5=9Bcie=C5=BCek?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/App.vue | 32 +++++++++++--------------------- src/mixins/useRouteGuard.ts | 30 ++++++++++++++++++++++++++++++ src/store.ts | 5 +++-- src/types/types.ts | 2 ++ 5 files changed, 47 insertions(+), 24 deletions(-) create mode 100644 src/mixins/useRouteGuard.ts diff --git a/.env b/.env index 6d8c16e..add8602 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ VITE_API_URL="https://spythere.pl" -VITE_API_URL_DEV="http://localhost:3000" \ No newline at end of file +VITE_API_URL_DEV="https://spythere.pl" \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 60df669..9b6cad2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,38 +5,28 @@