From db2f2d6660ebfeacc50bdd45525950bba30d0ff3 Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 23 Aug 2021 19:37:40 -0500 Subject: [PATCH] Fix dynamic route requests, add auth middleware --- .dockerignore | 3 ++- .gitignore | 3 ++- client/layouts/default.vue | 6 +----- client/middleware/authenticated.js | 6 ++++++ client/package.json | 2 +- client/pages/login.vue | 7 +------ client/store/audiobooks.js | 6 +++++- client/store/user.js | 8 +++++--- package.json | 2 +- server/Auth.js | 2 +- server/Server.js | 9 ++++----- 11 files changed, 29 insertions(+), 25 deletions(-) create mode 100644 client/middleware/authenticated.js diff --git a/.dockerignore b/.dockerignore index bcf90cc7..16527338 100644 --- a/.dockerignore +++ b/.dockerignore @@ -9,4 +9,5 @@ npm-debug.log /metadata dev.js /test/ -/client/.nuxt/ \ No newline at end of file +/client/.nuxt/ +/client/dist/ \ No newline at end of file diff --git a/.gitignore b/.gitignore index f4db32f8..cee07aab 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ node_modules/ /audiobooks2/ /metadata/ /test/ -/client/.nuxt/ \ No newline at end of file +/client/.nuxt/ +/client/dist/ \ No newline at end of file diff --git a/client/layouts/default.vue b/client/layouts/default.vue index 701d2565..a33d65f2 100644 --- a/client/layouts/default.vue +++ b/client/layouts/default.vue @@ -10,6 +10,7 @@