Skip to content

Commit

Permalink
fix: update admin route for new folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
authcompanion committed Sep 17, 2023
1 parent 0ca8a52 commit 27ebd2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/admin.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
});
Expand All @@ -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`,
});
Expand Down

0 comments on commit 27ebd2d

Please sign in to comment.