routes(app) ^
TypeError: routes is not a function at Object. (C:\Projeto\api\index.js:7:1) at Module.compile (node:internal/modules/cjs/loader:1159:14) at Module.extensions..js (node:internal/modules/cjs/loader:1213:10) at Module.load (node:internal/modules/cjs/loader:1037:32) at Module.load (node:internal/modules/cjs/loader:878:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/runmain:81:12) at node:internal/main/run_main_module:23:47
Meu /api/index.js
const express = require('express')
const routes = require('./routes')
const app = express()
const port = 3000
routes(app)
app.listen(port, () => console.log("Servidor iniciado"))
module.exports = app
api/routes/index.js
const bodyParser = require('body-parser')
module.exportes = app => {
app.use (bodyParser.json())
app.get('/', (req, res) => res.send('Ola'))
}