Advertisement
Guest User

Untitled

a guest
May 12th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. const express = require('express');
  2. const bodyParser = require('body-parser');
  3. const router = express.Router();
  4.  
  5. /* Post to registration page */
  6. router.post('/',function(req,res){
  7. const username= req.body.username;
  8. const email=req.body.user_email;
  9. const password=req.body.user_password;
  10. console.log(username,email,password);
  11. res.render('registration', {title : 'neohai | register'})
  12. });
  13.  
  14. module.exports = router;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement