mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 10:29:11 +00:00
remove unnecessary endpoint
This commit is contained in:
parent
26461ceaa4
commit
8d9939e4de
@ -11,7 +11,7 @@ This is a Node.js application that serves static files for the DrawDB frontend a
|
||||
```bash
|
||||
export DRAWDB_FILE_DIR=/some-dir-to-write-ddb-files
|
||||
cd server
|
||||
npm run dev
|
||||
npm run start
|
||||
```
|
||||
|
||||
The server will be running at `http://localhost:8080` (or the port specified by `DRAWDB_PORT`).
|
||||
|
@ -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, () => {
|
||||
console.log(`DrawDB is running on port ${DRAWDB_PORT}`);
|
||||
});
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user