switch to [slug].json.js server routes, instead of /api/...

This commit is contained in:
Rich Harris
2018-03-03 21:39:28 -05:00
parent e5d3589b63
commit 6a286f470d
5 changed files with 5 additions and 5 deletions

View File

@@ -32,7 +32,7 @@
},
preload({ params, query }) {
return fetch(`/api/blog-posts`).then(r => r.json()).then(posts => {
return fetch(`/blog.json`).then(r => r.json()).then(posts => {
return { posts };
});
}