| … | … | @@ -226,8 +226,8 @@ const handleHTTP = async (req, res) => { |
| 226 | 226 | </div> |
| 227 | 227 | |
| 228 | 228 | <button onclick="loadMessages()">🔄 Refresh</button> |
| 229 | | <button onclick="window.location.href='/stats'">📊 Stats JSON</button> |
| 230 | | <button onclick="window.location.href='/all'">📋 Messages JSON</button> |
| 229 | <button onclick="window.location.href='stats'">📊 Stats JSON</button> |
| 230 | <button onclick="window.location.href='all'">📋 Messages JSON</button> |
| 231 | 231 | |
| 232 | 232 | <div class="messages" id="messages"> |
| 233 | 233 | <div class="no-messages">Loading messages...</div> |
| … | … | @@ -236,7 +236,7 @@ const handleHTTP = async (req, res) => { |
| 236 | 236 | |
| 237 | 237 | <script> |
| 238 | 238 | async function loadStats() { |
| 239 | | const res = await fetch('/stats') |
| 239 | const res = await fetch('stats') |
| 240 | 240 | const stats = await res.json() |
| 241 | 241 | document.getElementById('messageCount').textContent = stats.messages.total |
| 242 | 242 | document.getElementById('authorCount').textContent = stats.messages.authors |
| … | … | @@ -249,7 +249,7 @@ const handleHTTP = async (req, res) => { |
| 249 | 249 | } |
| 250 | 250 | |
| 251 | 251 | async function loadMessages() { |
| 252 | | const res = await fetch('/all') |
| 252 | const res = await fetch('all') |
| 253 | 253 | const messages = await res.json() |
| 254 | 254 | const container = document.getElementById('messages') |
| 255 | 255 | |