{"size": 409, "ext": "js", "max_stars_repo_path": "routes/api/event.js", "max_stars_repo_name": "CookieChef/Cup_of_Sugar", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/api/event.js", "max_issues_repo_name": "CookieChef/Cup_of_Sugar", "max_issues_repo_issues_event_min_datetime": "2019-11-07T00:14:14.000Z", "max_issues_repo_issues_event_max_datetime": "2019-11-07T00:14:14.000Z", "max_forks_repo_path": "routes/api/event.js", "max_forks_repo_name": "CookieChef/Cup_of_Sugar", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 24.0588235294, "max_line_length": 54, "alphanum_fraction": 0.5696821516}
const express = require('express');
const router = express.Router();

const Event = require('../../models/Event');

router.post('/calendar', function (req, res ) {
    db.Event.create({
        name: req.body.name,
        place: req.body.place,
        synopsis: req.body.synopsis                   
    }).then(function (Event){
        res.redirect("/calendar");
    })
    })
   

module.exports = router;