Skip to content

Commit d6bba77

Browse files
committed
style: Update layout references in handler and router functions
1 parent 23a7e86 commit d6bba77

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/handler.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ export function postNotificationHandler(req: Request, res: Response) {
3333
// GET /settings
3434
export function getSettingsPageHandler(req: Request, res: Response) {
3535
return res.render('settings.html', {
36-
layout: '../layouts/dashboard.html',
36+
layout: '../layouts/auth.html',
3737
});
3838
}
3939

4040
// GET /profile
4141
export function getProfilePageHandler(req: Request, res: Response) {
4242
return res.render('profile.html', {
43-
layout: '../layouts/dashboard.html',
43+
layout: '../layouts/auth.html',
4444
});
4545
}
4646

47-
// GET /dashboard
48-
export function getDashboardPageHandler(req: Request, res: Response) {
49-
return res.render('dashboard.html', {
50-
layout: '../layouts/dashboard.html',
47+
// GET /apps
48+
export function getAppsPageHandler(req: Request, res: Response) {
49+
return res.render('apps.html', {
50+
layout: '../layouts/auth.html',
5151
});
5252
}
5353

src/router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
getHealthzHandler,
33
postNotificationHandler,
44
getHomePageHandler,
5-
getDashboardPageHandler,
5+
getAppsPageHandler,
66
getTermsOfServicePageHandler,
77
getSettingsPageHandler,
88
getProfilePageHandler,
@@ -23,7 +23,7 @@ router.get('/terms-of-service', catchAsyncErrorMiddleware(getTermsOfServicePageH
2323

2424
router.get('/healthz', catchAsyncErrorMiddleware(getHealthzHandler));
2525

26-
router.get('/dashboard', catchAsyncErrorMiddleware(getDashboardPageHandler));
26+
router.get('/apps', catchAsyncErrorMiddleware(getAppsPageHandler));
2727

2828
router.get('/settings', catchAsyncErrorMiddleware(getSettingsPageHandler));
2929

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="p-10">
22
<div class="mx-auto max-w-6xl w-full prose">
3-
<p>dashboard</p>
3+
<p>apps</p>
44
</div>
55
</div>

src/views/pages/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h1 class="card-title text-2xl">Notify</h1>
99
</div>
1010

1111
<div class="card-actions">
12-
<a href="/dashboard" class="btn w-full">
12+
<a href="/apps" class="btn w-full">
1313
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 256 250"><path fill="#161614" d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0m-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931m6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66m4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08m7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27m9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622m10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868m10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403"/></svg>
1414
<span>Sign In with GitHub</span>
1515
</a>

0 commit comments

Comments
 (0)