license key api for redis

This commit is contained in:
Yan
2018-01-12 15:07:11 +06:30
parent 0eda7543ff
commit 649711f72d
7 changed files with 57 additions and 10 deletions

View File

@@ -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