From 35fa25c060a48420d57260ee551ef5acd8ef473d Mon Sep 17 00:00:00 2001 From: lesion Date: Fri, 5 Apr 2019 00:10:19 +0200 Subject: [PATCH] working on ssr --- package.json | 1 + pages/about.vue | 34 +++++ pages/admin.vue | 196 +++++++++++++++++++++++++++ pages/{Register.vue => register.vue} | 4 +- plugins/api.js | 2 +- server/api/controller/user.js | 53 ++++---- server/index.js | 11 +- 7 files changed, 271 insertions(+), 30 deletions(-) create mode 100644 pages/about.vue create mode 100644 pages/admin.vue rename pages/{Register.vue => register.vue} (95%) diff --git a/package.json b/package.json index 08665b1d..c5211d39 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "@nuxtjs/axios": "^5.3.6", "axios": "^0.18.0", "bcrypt": "^3.0.5", + "body-parser": "^1.18.3", "bootstrap-vue": "^2.0.0-rc.16", "cors": "^2.8.5", "cross-env": "^5.2.0", diff --git a/pages/about.vue b/pages/about.vue new file mode 100644 index 00000000..81805c9e --- /dev/null +++ b/pages/about.vue @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/pages/admin.vue b/pages/admin.vue new file mode 100644 index 00000000..330b93f4 --- /dev/null +++ b/pages/admin.vue @@ -0,0 +1,196 @@ + + \ No newline at end of file diff --git a/pages/Register.vue b/pages/register.vue similarity index 95% rename from pages/Register.vue rename to pages/register.vue index ce0afef8..86891161 100644 --- a/pages/Register.vue +++ b/pages/register.vue @@ -18,8 +18,8 @@