Created
June 30, 2018 14:49
-
-
Save rishavs/1a9660cf0e0b7a1ee94b91276c9b6a0d to your computer and use it in GitHub Desktop.
This file contains 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
module Cove | |
class Auth | |
def self.register(ctx) | |
params = Cove::Parse.form_params(ctx.request.body) | |
username = params.fetch("username") | |
password = params.fetch("password") | |
store = { | |
"status" => "success", | |
"message" => "User was success fully added", | |
"data" => {"userid" => "xxx", "username" => username} | |
} | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment