Skip to content

Commit

Permalink
fix: dependency issues and security
Browse files Browse the repository at this point in the history
  • Loading branch information
alexx666 committed Jul 17, 2022
1 parent d94058b commit 602a3a4
Show file tree
Hide file tree
Showing 3 changed files with 3,722 additions and 6,072 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Express, { Response } from "express";
import Express, { Request, Response } from "express";

import { config } from "dotenv";

Expand All @@ -16,7 +16,7 @@ API.use(morgan("combined"));
API.use("/lists", listRouter)
API.use("/lists/:name/todos", todoRouter)

API.use("*", (err: Error, _1: any, res: Response, _2: any) => {
API.use("*", (err: Error, _1: Request, res: Response, _2: any) => {
res.status(500).json({ error: err.message });
console.debug(err.stack);
})
Expand Down
Loading

0 comments on commit 602a3a4

Please sign in to comment.