module.exports = app => { const router = require('express').Router() const employees = require('../app/controllers/employee.controller') router.get('/', employees.getEmployees) router.post('/', employees.create) app.use('/api/employees', router) }