mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-24 07:55:29 +00:00
Support being mounted on a path — fixes #180
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
return this.error(500, 'something went wrong');
|
||||
}
|
||||
|
||||
return fetch(`/blog/${slug}.json`).then(r => {
|
||||
return fetch(`blog/${slug}.json`).then(r => {
|
||||
if (r.status === 200) {
|
||||
return r.json().then(post => ({ post }));
|
||||
this.error(r.status, '')
|
||||
|
||||
Reference in New Issue
Block a user