Files
sapper/test/app/routes/credentials/index.html
2018-03-17 19:21:25 -04:00

12 lines
231 B
HTML

<h1>{{message}}</h1>
<script>
export default {
preload({ query }) {
console.log(`here ${this.fetch}`);
return this.fetch(`credentials/test.json`, {
credentials: query.creds
}).then(r => r.json());
}
};
</script>