From 27ebd2d88f12a8818da92c31dfb87a8393bb3aef Mon Sep 17 00:00:00 2001 From: authcompanion Date: Sat, 16 Sep 2023 20:23:13 -0400 Subject: [PATCH] fix: update admin route for new folder structure --- routes/admin.routes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/admin.routes.js b/routes/admin.routes.js index 9bcafd0..3142e48 100644 --- a/routes/admin.routes.js +++ b/routes/admin.routes.js @@ -55,7 +55,7 @@ const adminRoutes = async function (fastify, options) { "/dashboard", { onRequest: [authenticateWebAdminRequest] }, (request, reply) => { - const adminPage = readFileSync("./ui/admin/dashboardPage.html"); + const adminPage = readFileSync("./client/admin/dashboardPage.html"); reply.headers({ "Content-Type": `text/html`, }); @@ -65,7 +65,7 @@ const adminRoutes = async function (fastify, options) { //login page for the admin web user interface fastify.get("/login", (request, reply) => { - const loginPage = readFileSync("./ui/admin/loginAdminPage.html"); + const loginPage = readFileSync("./client/admin/loginAdminPage.html"); reply.headers({ "Content-Type": `text/html`, });