{"size": 413, "ext": "js", "max_stars_repo_path": "app.js", "max_stars_repo_name": "xclovero/2600-Project", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app.js", "max_issues_repo_name": "xclovero/2600-Project", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app.js", "max_forks_repo_name": "xclovero/2600-Project", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.5333333333, "max_line_length": 86, "alphanum_fraction": 0.6755447942}
const express = require("express");
const app = express();

const connection = require('./db/connection.js');

connection.once('open', ()=>{
    const server = app.listen(process.env.PORT || 8080, ()=>console.log("Listening"));
});

app.use(express.static("public"));
app.use(express.urlencoded({extended:true}));
app.use(express.json());

const router = require("./routes/index.js");
app.use('/GameAPI', router);