From c21eba4246be5c9831705a86592b45c70648c167 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sat, 2 Feb 2019 10:51:10 -0500 Subject: Add admin panel --- src/html/admin.html | 2 +- src/html/bread.html | 2 +- src/html/index.html | 2 +- src/html/login.html | 25 +++++++++++++++++++++++++ 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 src/html/login.html (limited to 'src/html') diff --git a/src/html/admin.html b/src/html/admin.html index 7c87ba6..d0d2e81 100644 --- a/src/html/admin.html +++ b/src/html/admin.html @@ -27,7 +27,7 @@ - + diff --git a/src/html/bread.html b/src/html/bread.html index e6eeb47..1ce1478 100644 --- a/src/html/bread.html +++ b/src/html/bread.html @@ -18,7 +18,7 @@ }, created() { fetch(new Request('/posts/bread')).then(response => response.json()) - .then(response => this.posts = response.data); + .then(response => this.posts = response); } }); } diff --git a/src/html/index.html b/src/html/index.html index c7e398b..01f6e4e 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -19,7 +19,7 @@ }, created() { fetch(new Request('/posts/index')).then(response => response.json()) - .then(response => this.posts = response.data); + .then(response => this.posts = response); } }); } diff --git a/src/html/login.html b/src/html/login.html new file mode 100644 index 0000000..53a2d06 --- /dev/null +++ b/src/html/login.html @@ -0,0 +1,25 @@ + + + + + Mark's Kitchen - Login + + + + + + + +
+

Login

+
+
+ + + +
+
+
+ + + \ No newline at end of file -- cgit v1.2.3