From 7131fe3f6c53cd681c1fb41936ada95df86b8849 Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Fri, 14 Jun 2024 07:17:59 -0400 Subject: [PATCH] Move old power hour arcade --- next.config.mjs | 4 ++-- pages/api/arcade/{ => hack-hour}/inventory.js | 0 public/arcade/{ => power-hour}/data-loader.js | 2 +- public/arcade/{ => power-hour}/index.html | 0 public/arcade/{ => power-hour}/style.css | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename pages/api/arcade/{ => hack-hour}/inventory.js (100%) rename public/arcade/{ => power-hour}/data-loader.js (94%) rename public/arcade/{ => power-hour}/index.html (100%) rename public/arcade/{ => power-hour}/style.css (100%) diff --git a/next.config.mjs b/next.config.mjs index 10fd485d..b2961bdd 100755 --- a/next.config.mjs +++ b/next.config.mjs @@ -310,8 +310,8 @@ const nextConfig = { destination: '/bin/selector/index.html' }, { - source: '/arcade/', - destination: '/arcade/index.html' + source: '/arcade/power-hour', + destination: '/arcade/power-hour/index.html' }, ] }, diff --git a/pages/api/arcade/inventory.js b/pages/api/arcade/hack-hour/inventory.js similarity index 100% rename from pages/api/arcade/inventory.js rename to pages/api/arcade/hack-hour/inventory.js diff --git a/public/arcade/data-loader.js b/public/arcade/power-hour/data-loader.js similarity index 94% rename from public/arcade/data-loader.js rename to public/arcade/power-hour/data-loader.js index a1e09b38..020addcf 100644 --- a/public/arcade/data-loader.js +++ b/public/arcade/power-hour/data-loader.js @@ -20,7 +20,7 @@ async function pullFromStorage() { } async function fetchData() { - return await fetch('/api/arcade/inventory').then(d => d.json()) + return await fetch('/api/arcade/hack-hour/inventory').then(d => d.json()) } async function setToStorage(data) { diff --git a/public/arcade/index.html b/public/arcade/power-hour/index.html similarity index 100% rename from public/arcade/index.html rename to public/arcade/power-hour/index.html diff --git a/public/arcade/style.css b/public/arcade/power-hour/style.css similarity index 100% rename from public/arcade/style.css rename to public/arcade/power-hour/style.css