{"size": 475, "ext": "js", "max_stars_repo_path": "server/server.js", "max_stars_repo_name": "luca2849/showtime", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/server.js", "max_issues_repo_name": "luca2849/showtime", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/server.js", "max_forks_repo_name": "luca2849/showtime", "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": 25.0, "max_line_length": 52, "alphanum_fraction": 0.6715789474}
const express = require("express");
const app = express();
// Database connection function
const connectDB = require("./config/db.js");
// Connect to database
connectDB();

// Init Middleware
app.use(express.json({ extend: false }));

// Define Routes
app.use("/api/auth", require("./routes/auth.js"));
app.use("/api/media", require("./routes/media.js"));

const PORT = process.env.PORT || 5000;
app.listen(PORT, () => {
	console.log(`Server Listening on Port ${PORT}`);
});
