From 85b28f71328367aa1fb441fe8608fb811b013294 Mon Sep 17 00:00:00 2001 From: "Bruce W. Herr II" Date: Fri, 6 Aug 2021 14:55:08 -0400 Subject: [PATCH] fix static path --- asctb-api/src/routes/static-pages.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asctb-api/src/routes/static-pages.ts b/asctb-api/src/routes/static-pages.ts index 5807972e..746da9c0 100644 --- a/asctb-api/src/routes/static-pages.ts +++ b/asctb-api/src/routes/static-pages.ts @@ -4,11 +4,11 @@ import path from 'path'; export function setupStaticPageRoutes(app: Express): void { app.get('/graph', (req: Request, res: Response) => { - res.sendFile('assets/graph-vis/index.html', { root: path.join(__dirname, '../../') }); + res.sendFile('assets/graph-vis/index.html', { root: path.join(__dirname, '../../../') }); }); app.get('/', (req: Request, res: Response) => { - res.sendFile('views/home.html', { root: path.join(__dirname, '../../') }); + res.sendFile('views/home.html', { root: path.join(__dirname, '../../../') }); }); }