{"size": 440, "ext": "js", "max_stars_repo_path": "routes/index.js", "max_stars_repo_name": "cryptwh0ads/social-media-api", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/index.js", "max_issues_repo_name": "cryptwh0ads/social-media-api", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "routes/index.js", "max_forks_repo_name": "cryptwh0ads/social-media-api", "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": 20.0, "max_line_length": 42, "alphanum_fraction": 0.6454545455}
const router = require('express').Router()

const authRoute = require('./auth')
const userRoute = require('./users')
const postsRoute = require('./posts')

// API route
router.get('/', (req, res) => {
    res.status(200).json({
        message: `API it's working!`
    })
})

// Auth route
router.use('/auth', authRoute)
// User route
router.use("/users", userRoute)
// Posts route
router.use("/posts", postsRoute)

module.exports = router
