This website works better with JavaScript.
首頁
探索
說明
登入
Archivist
/
sales_backend
關註
1
收藏
0
複製
1
程式碼
問題管理
0
合併請求
0
版本發佈
0
Wiki
Activity
瀏覽代碼
added use consultation query
master
Archivist
6 年之前
父節點
b9b01d25dc
當前提交
690da84f18
共有
1 個文件被更改
,包括
4 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
src/sales_backend.cr
+ 4
- 0
src/sales_backend.cr
查看文件
@ -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…
取消
儲存