mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-20 14:25:07 +00:00
prevent client-side navigation to server routes - fixes #145
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
return this.error(500, 'something went wrong');
|
||||
}
|
||||
|
||||
return fetch(`/api/blog/${slug}`).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