Guest User

Untitled

a guest
Dec 21st, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. var express = require('express');
  2. var app = express();
  3. /*
  4. app.use(express.static(__dirname+'/',{login:'/login.html'}));
  5. */
  6. app.get('/',fucnction(req,res){
  7. res.sendFile(__dirname +'/login.html');
  8. });
  9. app.get('/insert',function(req,res){
  10. var username = req.query.username;
  11. var password = req.query.password;
  12. console.log('the username of the user is : '+username);
  13. console.log('the password of the user is:'+password);
  14. });
  15. app.listen(3000);
  16. console.log('the server is running at port :3000');
Add Comment
Please, Sign In to add comment