This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
URL: http://github.com/microsoft/TypeScript-Node-Starter/issues/251
ode_modules_github_selector-observer_dist_index_esm_js-f690fd9ae3d5.js">
These lines wont do anything:
export const postLogin = (req: Request, res: Response, next: NextFunction) => { check("email", "Email is not valid").isEmail() check("password", "Password cannot be blank").isLength({min: 1})
the checks() are middleware, they need to be in the middleware chain, not in the middle of a function
The text was updated successfully, but these errors were encountered: