Created
March 2, 2018 11:31
-
-
Save mczachurski/1d9c1e3150ab723dbc495993f56c9af8 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
override func initRoutes() { | |
self.add(method: .post, uri: "/account/register", authorization: .anonymous, handler: register) | |
self.add(method: .post, uri: "/account/signIn", authorization: .anonymous, handler: signIn) | |
self.add(method: .post, uri: "/account/changePassword", authorization: .signedIn, handler: changePassword) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment