about summary refs log tree commit diff
path: root/netlify.toml
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-29 12:22:09 +0100
committerGitHub <noreply@github.com>2020-01-29 12:22:09 +0100
commit3e5f329cd8c9692e24f5fd56a5e4189bf2202e0d (patch)
tree8f9140f2326df571a6990df6e9cbd1525f19e374 /netlify.toml
parent3c2ac6715dfffc2eda38e014ed0b4986ccc7f75a (diff)
parent0a8355312990db95de3aa4e946b907ed0abf5a12 (diff)
downloadpuszcza-3e5f329cd8c9692e24f5fd56a5e4189bf2202e0d.tar.gz
puszcza-3e5f329cd8c9692e24f5fd56a5e4189bf2202e0d.zip
Merge pull request #26 from 19pdh/feature/json-api
Feature/json api
Diffstat (limited to 'netlify.toml')
-rw-r--r--netlify.toml7
1 files changed, 4 insertions, 3 deletions
diff --git a/netlify.toml b/netlify.toml
index 5c94b41..49b3af9 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -4,6 +4,7 @@ publish = "dist/"
 command = "npm run build"
 
 [[redirects]]
-    from = "/api/posts"
-    to = "/api/posts.json"
-    status = 200
\ No newline at end of file
+ from = "/api/*"
+ to = "https://api-puszcza.netlify.com/api/:splat"
+ status = 200
+ force = true