const express = require('express');
const app = express();
var bodyParser = require('body-parser')
let urlcodedParser = app.use(bodyParser.urlencoded({ extended : false}));
app.get('/', (req,res) =>{
res.sendFile(__dirname + '/index.html');
})
app.post('/index', urlcodedParser, (req,res)=>{
console.log(req.body);
})
app.listen(3000, (req,res) =>{
console.log('ON')
})