Skip to content

Commit 60038e3

Browse files
committed
chore(): update readme
1 parent d4a74dc commit 60038e3

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ npm start
6161

6262
The list of available APIs can be viewed on localhost:8000/api by default but this can be customised - see later.
6363

64-
A list of all endpoints can be viewed on http://localhost:8000/.
64+
A list of all endpoints can be viewed on the mock server dashboard at http://localhost:8000/.
6565

6666
The project has been set-up with demo endpoints that can be removed or modified as needed.
6767

images/image.png

70.5 KB
Loading

images/logs.png

17.1 KB
Loading

src/utilities/log-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const createHtml = () => {
3131
<body style="margin: 0px; background: linear-gradient(120deg, #20232a 0%, #23272F 70%, #0d1117 100%); display: flex; flex-direction: column; justify-content: center; align-items: center; min-height:100vh; font-family: sans-serif;">
3232
<h2 style="color:white" data-cy="logger-title">API Requests Made</h2>
3333
<h3 style="color:white">File can be viewed in /src/logs folder in container or local machine</h3>
34-
<h5 style="color:grey; margin-top:-10px;">LOG_REQUESTS env var must be set to 'ON' to log requests</h5>
34+
<h5 style="text-align: center; color:grey; margin-top:-10px;">LOG_REQUESTS env var must be set to 'ON' to log requests <br/>AND the logger function must be implemented in the api.ts file for that endpoint</h5>
3535
<div class="json-container" style="width: 100%; padding:20px; box-sizing: border-box;">
3636
${prettyPrintJson.toHtml(JSON.parse(readLogs()), { indent: 4, lineNumbers: true })}
3737
</div>

src/utilities/server-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ const homePage = (apiPaths: string[]) => [
409409
}</pre>
410410
<button class="copy-btn" id="mcp-copy-btn">Copy</button>
411411
<span id="mcp-copy-status" style="font-size:0.98rem;"></span>
412-
<p style="margin-top:18px;font-size:0.98rem;color:var(--text-muted);">Replace <code>&lt;absolute-path-to-your-project&gt;</code> with the full path to your project directory.</p>
412+
<p style="margin-top:18px;font-size:0.98rem;color:var(--text-muted);">Replace <code>&lt;absolute-path-to-your-project&gt;</code> with the full path to your project directory and remember to use the path format suitable for your system (E.g &#92;&#92; on Windows).</p>
413413
</div>
414414
</div>
415415
</main>
@@ -467,7 +467,7 @@ const homePage = (apiPaths: string[]) => [
467467
checkServerStatus();
468468
469469
// Check every 10 seconds
470-
setInterval(checkServerStatus, 10000);
470+
setInterval(checkServerStatus, 2000);
471471
});
472472
const mcpBtn = document.getElementById('mcp-connect-btn');
473473
const mcpModal = document.getElementById('mcp-modal');

0 commit comments

Comments
 (0)