mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-13 19:45:26 +00:00
oops
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
return this.error(500, 'something went wrong');
|
return this.error(500, 'something went wrong');
|
||||||
}
|
}
|
||||||
|
|
||||||
return fetch(`blog/${slug}.json`).then(async r => {
|
return fetch(`blog/${slug}.json`).then(r => {
|
||||||
if (r.status === 200) {
|
if (r.status === 200) {
|
||||||
return r.json().then(post => ({ post }));
|
return r.json().then(post => ({ post }));
|
||||||
this.error(r.status, '')
|
this.error(r.status, '')
|
||||||
|
|||||||
Reference in New Issue
Block a user