Skip to content

Commit

Permalink
add static typing to server file
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanxiong committed Aug 6, 2024
1 parent f2503e0 commit 8b8d12f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flake-guard-app/src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import resultsRouter from './routes/resultsRouter';
import userDashRouter from './routes/userDashRouter';
import tempDashRouter from './routes/tempDashRouter';
import {errorHandler} from './errors/errorHandler';
import {Request, Response} from 'express';

const app = express();
const PORT = process.env.PORT || 3000;
Expand All @@ -22,7 +23,7 @@ app.use('/tempDash', tempDashRouter);
app.use('/userDash', userDashRouter);

// Catch all
app.use('*', (req, res) => {
app.use('*', (req: Request, res: Response) => {
res.sendFile(path.resolve(__dirname, '../../dist/index.html'));
});

Expand Down

0 comments on commit 8b8d12f

Please sign in to comment.