Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var app = express();
- app.use('/box/srv/1.1/admin/auth/policy/auth', function(req, res, next){
- var uesr = req.body.user;
- var pass = req.body.pass;
- if(user === "test" && pass === "test"){
- return res.status(200).json({});
- } else {
- return res.status(402);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement