Update server.ts
Browse files
server.ts
CHANGED
|
@@ -87,6 +87,10 @@ async function startServer() {
|
|
| 87 |
res.json({ status: 'ok', dir: __dirname, time: new Date().toISOString() });
|
| 88 |
});
|
| 89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
app.get('*', (req, res) => {
|
| 91 |
res.sendFile(path.join(distPath, 'index.html'));
|
| 92 |
});
|
|
|
|
| 87 |
res.json({ status: 'ok', dir: __dirname, time: new Date().toISOString() });
|
| 88 |
});
|
| 89 |
|
| 90 |
+
app.get('/assets/*', (req, res) => {
|
| 91 |
+
res.status(404).send('Not Found');
|
| 92 |
+
});
|
| 93 |
+
|
| 94 |
app.get('*', (req, res) => {
|
| 95 |
res.sendFile(path.join(distPath, 'index.html'));
|
| 96 |
});
|