Skip to content

Commit 12649cd

Browse files
author
hero
committed
添加推送服务
1 parent 01092f6 commit 12649cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

go_push/gateway/http_server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import (
77
)
88

99
func InitHttpServer() {
10+
//curl http://0.0.0.0:9999/push/all -X POST -d "val=test push&tag=3"
11+
//curl http://0.0.0.0:9999/push/room -X POST -d "val=test push&tag=3&id=1"
1012
mux := http.NewServeMux()
1113
mux.HandleFunc("/push/all", HttpPushAll)
1214
mux.HandleFunc("/push/room", HttpPushRoom)

0 commit comments

Comments
 (0)