add svelte app.
This commit is contained in:
9
webapp/src/routes/index.json.js
Normal file
9
webapp/src/routes/index.json.js
Normal 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());
|
||||
}
|
Reference in New Issue
Block a user