Skip to content

Commit

Permalink
Fix Server Error by Updating Routes and Template References
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruba Al Mahmoud authored and Ruba Al Mahmoud committed Oct 2, 2024
1 parent e82b082 commit 6672e8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ _mounts.categories = (app, name, middleware, controllers) => {
setupPageRoute(app, '/recent', [], controllers.recent.get);
setupPageRoute(app, '/top', [], controllers.top.get);
setupPageRoute(app, '/unread', [middleware.ensureLoggedIn], controllers.unread.get);
setupPageRoute(app, '/resources-button', [], resourcesButtonController.getResourcesPage);
setupPageRoute(app, '/resources-button', [], controllers.resourcesButton.getResourcesButtonPage);
};

_mounts.category = (app, name, middleware, controllers) => {
Expand Down
7 changes: 2 additions & 5 deletions src/views/resources-button.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,19 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Resources</title>
<link rel="stylesheet" href="/path/to/your/styles.css"> <!-- Adjust the path as necessary -->
<title>{{title}}</title>
</head>
<body>
<div class="container">
<h1>Resources</h1>
<p>Welcome to the resources page! Here you can find various links and materials.</p>

<!-- Example section for links -->

<h2>Useful Links</h2>
<ul>
<li><a href="https://example.com" target="_blank">Example Link 1</a></li>
<li><a href="https://example.com" target="_blank">Example Link 2</a></li>
<li><a href="https://example.com" target="_blank">Example Link 3</a></li>
</ul>

<!-- Add more sections as needed -->
</div>
</body>
Expand Down

0 comments on commit 6672e8b

Please sign in to comment.