{"size": 382, "ext": "js", "max_stars_repo_path": "Server/index.js", "max_stars_repo_name": "brandon-pereira/purrvice-workers", "max_stars_repo_stars_event_min_datetime": "2017-01-25T04:55:23.000Z", "max_stars_repo_stars_event_max_datetime": "2017-01-25T04:55:23.000Z", "max_issues_repo_path": "Server/index.js", "max_issues_repo_name": "brandon-pereira/purrvice-workers", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Server/index.js", "max_forks_repo_name": "brandon-pereira/purrvice-workers", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.875, "max_line_length": 97, "alphanum_fraction": 0.6518324607}
const Push = require('./push');
const express = require('express');
const webpush = require('web-push');

const app = express();

app.listen(8082);

// Enable CORS
app.use(function (req, res, next) {
    res.header("Access-Control-Allow-Origin", "*");
    res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
    next();
});

Push(app, '/');