license key api for redis
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
class SymControlController < BaseController
|
||||
skip_before_action :verify_authenticity_token
|
||||
http_basic_authenticate_with name: "vip", password: "!abcABC01"
|
||||
|
||||
def run
|
||||
sym_path = "/home/yan/symmetric/"
|
||||
@@ -32,4 +33,14 @@ class SymControlController < BaseController
|
||||
end
|
||||
end
|
||||
|
||||
def get_key
|
||||
license = License.new(ENV["SX_PROVISION_URL"])
|
||||
status = license.get_key
|
||||
if status
|
||||
render :text => "<h1>Success!</h1>"
|
||||
else
|
||||
render :text => "<h1>Not Get!</h1>"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user