exportar nova classe padrão no ES6
class AuthController {
sendOtp(req, res) {
res.send('otp send')
}
}
export default new AuthController()
SabDev
class AuthController {
sendOtp(req, res) {
res.send('otp send')
}
}
export default new AuthController()
export default class ClassName{...}