dennis is live

This commit is contained in:
Adam 2023-06-18 16:01:30 -04:00
parent 009db2beba
commit 365748995f
4 changed files with 10 additions and 3 deletions

View file

@ -16,6 +16,8 @@ import {
import "./root.css";
export const DENNIS = "https://dennis.doordesk.net";
export default function Root() {
const location = useLocation();

View file

@ -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[];
});

View file

@ -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[];
});

View file

@ -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[];
});