|
@ -90,6 +90,10 @@ post "/user" do |context| |
|
|
"OK".to_json |
|
|
"OK".to_json |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
get "/user" do |context| |
|
|
|
|
|
authenticate!(context.request.headers["user"],UUID.new(context.request.headers["api_token"])).to_json |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
# Creates a WebSocket handler. |
|
|
# Creates a WebSocket handler. |
|
|
# Matches "ws://host:port/socket" |
|
|
# Matches "ws://host:port/socket" |
|
|
ws "/socket" do |socket| |
|
|
ws "/socket" do |socket| |
|
|