Skip to content

Commit

Permalink
Update page root path
Browse files Browse the repository at this point in the history
  • Loading branch information
rayc2045 committed Apr 15, 2024
1 parent ddd9572 commit cb8d34c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const router = {
this.currentPath = path.startsWith('/') ? path : '/';
},
async getPageHTML(path = this.currentPath) {
const root = './pages';
const root = './src/pages';
const page =
this.routes.find(route => route.path === path)?.component || '/404.html';
return await fetch(root + page).then(res => res.text());
Expand Down

0 comments on commit cb8d34c

Please sign in to comment.