Skip to content

Instantly share code, notes, and snippets.

@mczachurski
Created March 2, 2018 11:31
Show Gist options
  • Save mczachurski/1d9c1e3150ab723dbc495993f56c9af8 to your computer and use it in GitHub Desktop.
Save mczachurski/1d9c1e3150ab723dbc495993f56c9af8 to your computer and use it in GitHub Desktop.
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