about summary refs log tree commit diff
path: root/netlify.toml
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-11 19:33:24 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-11 19:33:24 +0200
commit5855198867cc0586b71b6d64f4581dffc7fe6cbb (patch)
tree663823d5af3711eb2777cef5a6e34484c901f9d9 /netlify.toml
parent1e248151d5bd60e8c94ab26f272e5e9cf900ca7a (diff)
downloadpuszcza-5855198867cc0586b71b6d64f4581dffc7fe6cbb.tar.gz
puszcza-5855198867cc0586b71b6d64f4581dffc7fe6cbb.zip
Add api endpoint
Diffstat (limited to 'netlify.toml')
-rw-r--r--netlify.toml7
1 files changed, 6 insertions, 1 deletions
diff --git a/netlify.toml b/netlify.toml
index 080dfa8..5c94b41 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -1,4 +1,9 @@
 [build]
 
 publish = "dist/"
-command = "npm run build"
\ No newline at end of file
+command = "npm run build"
+
+[[redirects]]
+    from = "/api/posts"
+    to = "/api/posts.json"
+    status = 200
\ No newline at end of file