dennis is live
This commit is contained in:
parent
009db2beba
commit
365748995f
4 changed files with 10 additions and 3 deletions
|
@ -16,6 +16,8 @@ import {
|
|||
|
||||
import "./root.css";
|
||||
|
||||
export const DENNIS = "https://dennis.doordesk.net";
|
||||
|
||||
|
||||
export default function Root() {
|
||||
const location = useLocation();
|
||||
|
|
|
@ -5,10 +5,11 @@ import Slingshot from "~/components/Slingshot";
|
|||
import type { JSXElement } from "solid-js";
|
||||
import type { Ammo } from "~/components/Slingshot";
|
||||
|
||||
import { DENNIS } from "~/root";
|
||||
|
||||
export function routeData() {
|
||||
const [ammoBox] = createResource(async () => {
|
||||
const response = await fetch("http://127.0.0.1:9696/dennis/blog");
|
||||
const response = await fetch(`${DENNIS}/blog`);
|
||||
|
||||
return await response.json() as Ammo[];
|
||||
});
|
||||
|
|
|
@ -5,10 +5,12 @@ import Slingshot from "~/components/Slingshot";
|
|||
import type { JSXElement } from "solid-js";
|
||||
import type { Ammo } from "~/components/Slingshot";
|
||||
|
||||
import { DENNIS } from "~/root";
|
||||
|
||||
|
||||
export function routeData() {
|
||||
const [ammoBox] = createResource(async () => {
|
||||
const response = await fetch("http://127.0.0.1:9696/dennis/home");
|
||||
const response = await fetch(`${DENNIS}/home`);
|
||||
|
||||
return await response.json() as Ammo[];
|
||||
});
|
||||
|
|
|
@ -5,10 +5,12 @@ import Slingshot from "~/components/Slingshot";
|
|||
import type { JSXElement } from "solid-js";
|
||||
import type { Ammo } from "~/components/Slingshot";
|
||||
|
||||
import { DENNIS } from "~/root";
|
||||
|
||||
|
||||
export function routeData() {
|
||||
const [ammoBox] = createResource(async () => {
|
||||
const response = await fetch("http://127.0.0.1:9696/dennis/projects");
|
||||
const response = await fetch(`${DENNIS}/projects`);
|
||||
|
||||
return await response.json() as Ammo[];
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue