remove unnecessary endpoint

This commit is contained in:
Tei Yuan Wei 2024-10-21 16:21:46 +08:00
parent 26461ceaa4
commit 8d9939e4de
3 changed files with 2 additions and 6 deletions

View File

@ -11,7 +11,7 @@ This is a Node.js application that serves static files for the DrawDB frontend a
```bash ```bash
export DRAWDB_FILE_DIR=/some-dir-to-write-ddb-files export DRAWDB_FILE_DIR=/some-dir-to-write-ddb-files
cd server cd server
npm run dev npm run start
``` ```
The server will be running at `http://localhost:8080` (or the port specified by `DRAWDB_PORT`). The server will be running at `http://localhost:8080` (or the port specified by `DRAWDB_PORT`).

View File

@ -81,10 +81,6 @@ app.get('/api/diagrams', (_req, res) => {
}); });
}); });
app.get('*', (req, res) => {
res.sendFile(path.join(DRAWDB_HOME, 'index.html'));
});
app.listen(DRAWDB_PORT, () => { app.listen(DRAWDB_PORT, () => {
console.log(`DrawDB is running on port ${DRAWDB_PORT}`); console.log(`DrawDB is running on port ${DRAWDB_PORT}`);
}); });

File diff suppressed because one or more lines are too long