make project exportable by avoiding api/blog route conflict

This commit is contained in:
Rich Harris
2018-02-05 09:09:32 -05:00
parent c4181157dd
commit c84ae160ef
4 changed files with 4 additions and 4 deletions

View File

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