add svelte app.

This commit is contained in:
Jason Schwarzenberger
2020-11-27 13:43:47 +13:00
parent 085dd47d13
commit fe4b02e8a1
27 changed files with 3827 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import fetch from 'node-fetch';
export async function get(req, res) {
const response = await fetch(`http://localhost:33842/api`);
res.writeHead(200, {
'Content-Type': 'application/json'
});
res.end(await response.text());
}