Skip to content
Snippets Groups Projects

Revert "Merge branch 'feature/12-dev-auto-deploy' into 'master'"

Merged Rafael László requested to merge revert-a0c30d4f into master
42 files
+ 85
659
Compare changes
  • Side-by-side
  • Inline
Files
42
import {Request, Response, NextFunction} from "express";
import {Request, Response, NextFunction} from "express";
const authenticated = () => (req : Request, res : Response, next: NextFunction ) =>{
const authenticated = () => (req : Request, res : Response, next: NextFunction ) =>{
if(req.session!.user)
if(req.session!.user)
next();
next();
else{
else{
res.status(403);
res.status(403);
res.json({message: "You have to login to see this page"});
res.json({message: "You have to login to see this page"});
}
}
}
}
export default authenticated;
export default authenticated;
 
\ No newline at end of file
Loading