mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 07:59:59 -07:00
wip
This commit is contained in:
1
bin/web/src/routes/+layout.ts
Normal file
1
bin/web/src/routes/+layout.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const ssr = false;
|
||||
2
bin/web/src/routes/+page.svelte
Normal file
2
bin/web/src/routes/+page.svelte
Normal file
@@ -0,0 +1,2 @@
|
||||
<h1>Welcome to SvelteKit</h1>
|
||||
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
|
||||
18
bin/web/src/routes/+page.ts
Normal file
18
bin/web/src/routes/+page.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { base } from '$app/paths';
|
||||
|
||||
export async function load({ fetch }) {
|
||||
|
||||
const url = base + "/hello?name=PageLoadFunction";
|
||||
const opts = {
|
||||
method: "get",
|
||||
headers: { "Content-Type": "application/json" }
|
||||
};
|
||||
const response = await fetch(url, opts);
|
||||
const hello = await response.text();
|
||||
console.log("Hello:", hello);
|
||||
|
||||
return {
|
||||
hello
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user