// app.js const express = require('express'); const authMiddleware = require('./middlewares/authMiddleware'); const app = express(); app.use(authMiddleware);