This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
sales_backend
Watch
1
Star
0
Fork
1
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
added use consultation query
master
Archivist
6 years ago
parent
b9b01d25dc
commit
690da84f18
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
|
Write
Preview
Loading…
Cancel
Save