Skip to content

Commit

Permalink
fix static path
Browse files Browse the repository at this point in the history
  • Loading branch information
bherr2 committed Aug 6, 2021
1 parent bc93663 commit 85b28f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asctb-api/src/routes/static-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, '../../../') });
});
}

0 comments on commit 85b28f7

Please sign in to comment.