diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-11 19:33:24 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-10-11 19:33:24 +0200 |
commit | 5855198867cc0586b71b6d64f4581dffc7fe6cbb (patch) | |
tree | 663823d5af3711eb2777cef5a6e34484c901f9d9 /netlify.toml | |
parent | 1e248151d5bd60e8c94ab26f272e5e9cf900ca7a (diff) | |
download | puszcza-5855198867cc0586b71b6d64f4581dffc7fe6cbb.tar.gz puszcza-5855198867cc0586b71b6d64f4581dffc7fe6cbb.zip |
Add api endpoint
Diffstat (limited to 'netlify.toml')
-rw-r--r-- | netlify.toml | 7 |
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 |