mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 17:30:16 +01:00
return 404 instead of 200 (#1294)
This commit is contained in:
parent
ca64efec1b
commit
2e390596ea
1 changed files with 2 additions and 3 deletions
|
|
@ -71,9 +71,8 @@ const startServer = async () => {
|
||||||
app.use('/api/assistants', routes.assistants);
|
app.use('/api/assistants', routes.assistants);
|
||||||
app.use('/api/files', routes.files);
|
app.use('/api/files', routes.files);
|
||||||
|
|
||||||
// Static files
|
app.use((req, res) => {
|
||||||
app.get('/*', function (req, res) {
|
res.status(404).sendFile(path.join(projectPath, 'dist', 'index.html'));
|
||||||
res.sendFile(path.join(projectPath, 'dist', 'index.html'));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.listen(port, host, () => {
|
app.listen(port, host, () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue