So what I am trying to do is take data from a form and push it into my list as a map. It currently says
Cannot read property 'url' of undefined
express = require("express");
app = express();
var bodyParser = require("body-parser");
app.use(express.static("public"));
var imagedata = [
    {url: "...", description: "..."},
    {url: "...", description: "..."}
];
app.use(bodyParser.urlencoded({extended: true}));
app.get("/", function(req, res){
    res.render("home.ejs", {imagedata: imagedata});
});
app.post("/post", function(req, req){
    var NewPost = req.body.url;
    var Description = req.body.description;
    imagedata.push({url: NewPost, description: Description});
    res.redirect("/");
});
 
     
     
     
    