blob: 18729ccbf06eb3c5bdebf7a7e583eede60b0016a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require "sinatra"
require 'json'
get '/login/:id/:password' do |id, password|
content_type :json
if id == "1" && password == '1234'
{ success: true }.to_json
else
{ success: false }.to_json
end
end
|