Skip to content

Commit

Permalink
Add Footers to static pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Schuler committed Jan 21, 2025
1 parent 2fbe301 commit c68acb1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<body>
<h1>API Documentation</h1>
<h2>Base URL</h2>
<p id="base-url"><strong>http://localhost:1323</strong></p>
<p id="base-url"><strong>Loading...</strong></p>

<div class="endpoint">
<h3 class="method">GET</h3>
Expand Down Expand Up @@ -105,6 +105,10 @@ <h4>Response:</h4>

<h2>Static Assets (like this page)</h2>
<p>Static files are served from the <strong>assets</strong> directory.</p>

<h2>Other Pages</h2>
<a href="viewMessages.html">View Messages</a>
<a href="https://github.com/jake-schuler/guestbook-api">GitHub</a>
</body>
<script>
var baseUrl = document.getElementById("base-url");
Expand Down
4 changes: 4 additions & 0 deletions assets/viewMessages.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ <h1>Messages</h1>
<p class="loading">Loading messages...</p>
</div>

<h2>Other Pages</h2>
<a href="/">API Documentation</a>
<a href="https://github.com/jake-schuler/guestbook-api">GitHub</a>

<script>
async function fetchMessages() {
try {
Expand Down

0 comments on commit c68acb1

Please sign in to comment.