{"size": 814, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "A01746540/equipo4-p1-backend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "index.js", "max_issues_repo_name": "A01746540/equipo4-p1-backend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "index.js", "max_forks_repo_name": "A01746540/equipo4-p1-backend", "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": 35.3913043478, "max_line_length": 71, "alphanum_fraction": 0.7137592138}
const express = require('express')
const app = express();
const sequelize = require('./utils/database')
const cancionRoutes = require('./routes/canciones')
const libroRoutes = require('./routes/libros')
const listareproduccionRoutes = require('./routes/listas_reproduccion')
const listacancionRoutes = require('./routes/lista_canciones')
const listalibroRoutes = require('./routes/lista_libros')

app.use(express.json())
app.use('/canciones', cancionRoutes);
app.use('/libros', libroRoutes);
app.use('/listareproduccion', listareproduccionRoutes);
app.use('/listacanciones', listacancionRoutes);
app.use('/listalibros', listalibroRoutes);

sequelize.sync()
    .then(
        app.listen(8084, () => {
            console.log("Servidor online en el puerto 8084")
        })
    )
    .catch(err => console.log(err))