aboutsummaryrefslogtreecommitdiff
path: root/src/html
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2019-02-01 13:02:50 -0500
committerMark Powers <markppowers0@gmail.com>2019-02-01 13:02:50 -0500
commitd1162d1bd12cbb3eae9889768adbbb293852c066 (patch)
treeb58fbf57426c9d789df088863991b7c106b08b7c /src/html
parent80ee170990e78753d07779d59bdfe516c399d254 (diff)
Remove /photo/ to uploads folder
Diffstat (limited to 'src/html')
-rw-r--r--src/html/admin.html36
-rw-r--r--src/html/bread.html2
-rw-r--r--src/html/index.html2
3 files changed, 38 insertions, 2 deletions
diff --git a/src/html/admin.html b/src/html/admin.html
new file mode 100644
index 0000000..7c87ba6
--- /dev/null
+++ b/src/html/admin.html
@@ -0,0 +1,36 @@
+<!doctype html>
+<html lang="en">
+
+<head>
+ <title>Mark's Kitchen - Admin</title>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+ <link rel="stylesheet" type="text/css" href="/css/bootstrap.css">
+ <link rel="stylesheet" type="text/css" href="/css/styles.css">
+</head>
+
+<body>
+ <div>
+ <h1>Create Post</h1>
+ <div class="form">
+ <form action="/posts" method="post" enctype="multipart/form-data">
+ <div>
+ <textarea rows="4" cols="50" name="description"></textarea>
+ </div>
+ <div>
+ Images: <input type="file" name="images" multiple>
+ </div>
+ <div>
+ <select name="type">
+ <option value="" disabled selected>Select...</option>
+ <option value="bread">Bread</option>
+ <option value="index">Index</option>
+ </select>
+ </div>
+ <input type="submit">
+ </form>
+ </div>
+ </div>
+</body>
+
+</html> \ No newline at end of file
diff --git a/src/html/bread.html b/src/html/bread.html
index 8004803..e6eeb47 100644
--- a/src/html/bread.html
+++ b/src/html/bread.html
@@ -17,7 +17,7 @@
posts: []
},
created() {
- fetch(new Request('/bread/posts.json')).then(response => response.json())
+ fetch(new Request('/posts/bread')).then(response => response.json())
.then(response => this.posts = response.data);
}
});
diff --git a/src/html/index.html b/src/html/index.html
index 7a1d5d5..c7e398b 100644
--- a/src/html/index.html
+++ b/src/html/index.html
@@ -18,7 +18,7 @@
posts: []
},
created() {
- fetch(new Request('/index/posts.json')).then(response => response.json())
+ fetch(new Request('/posts/index')).then(response => response.json())
.then(response => this.posts = response.data);
}
});