Browse Source

added use consultation query

master
Archivist 6 years ago
parent
commit
690da84f18
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/sales_backend.cr

+ 4
- 0
src/sales_backend.cr View File

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

Loading…
Cancel
Save