Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

export default new class in es6

class AuthController {
  sendOtp(req, res) {
    res.send('otp send')
  }
}

export default new AuthController()
 
PREVIOUS NEXT
Tagged: #export #default #class
ADD COMMENT
Topic
Name
6+2 =