diff options
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/admin.html | 36 | ||||
-rw-r--r-- | src/html/bread.html | 2 | ||||
-rw-r--r-- | src/html/index.html | 2 |
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); } }); |