Resolve any file in public/

This commit is contained in:
Alex Gleason 2023-09-11 04:14:08 -05:00
parent 9cda8e3000
commit a5bf09ed2b
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 2 deletions

View File

@ -157,8 +157,7 @@ app.get('/api/v1/markers', emptyObjectController);
app.get('/api/v1/conversations', emptyArrayController); app.get('/api/v1/conversations', emptyArrayController);
app.get('/api/v1/lists', emptyArrayController); app.get('/api/v1/lists', emptyArrayController);
app.get('/packs/*', serveStatic({ root: './public/' })); app.get('*', serveStatic({ root: './public/' }));
app.get('/instance/*', serveStatic({ root: './public/' }));
app.get('*', serveStatic({ path: './public/index.html' })); app.get('*', serveStatic({ path: './public/index.html' }));
app.get('/', indexController); app.get('/', indexController);