From a5bf09ed2b1f245f29c008f7bc9c7d0190e9c9de Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 11 Sep 2023 04:14:08 -0500 Subject: [PATCH] Resolve any file in public/ --- src/app.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app.ts b/src/app.ts index d46cb91..ff57ec0 100644 --- a/src/app.ts +++ b/src/app.ts @@ -157,8 +157,7 @@ app.get('/api/v1/markers', emptyObjectController); app.get('/api/v1/conversations', emptyArrayController); app.get('/api/v1/lists', emptyArrayController); -app.get('/packs/*', serveStatic({ root: './public/' })); -app.get('/instance/*', serveStatic({ root: './public/' })); +app.get('*', serveStatic({ root: './public/' })); app.get('*', serveStatic({ path: './public/index.html' })); app.get('/', indexController);