Last active
August 24, 2018 02:57
-
-
Save hieuhani/b3a06e4679e4566e29f754436e7757aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PromiseRouter from './PromiseRouter' | |
function hello(req) { | |
const { authController } = req.config | |
return authController.sayHello() | |
} | |
export default class AuthRouter extends PromiseRouter { | |
mountRoutes() { | |
this.route('GET', '/hello', req => (hello(req))) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment