old_contents: const { Router }     = require('express')
  const authMiddleware = require('./../middlewares/authentication')
  
  const api = (app) => {
    let api = Router()
  
    api.use(authMiddleware)
  
    api.get('/', (req, res) => {
      res.send({
        message: 'Autenticado'
      })
    })
  
    return api
  }
  
  module.exports = api
  
new_contents: const { Router }     = require('express')
  const authRoutes     = require('./authentication')
  const authMiddleware = require('./../middlewares/authentication')
  
  const api = (app) => {
    let api = Router()
  
    api.use(authMiddleware)
  
    api.get('/', (req, res) => {
      res.send({ message: 'Autenticado' })
    })
  
    authRoutes(api)
  
    return api
  }
  
  module.exports = api
  
subject: Add auth route