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