Skip to content

Commit e9b3e22

Browse files
committed
Add version in info
1 parent 986d3e3 commit e9b3e22

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

info.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import (
66

77
func infoHandler(c *gin.Context) {
88
c.JSON(200, gin.H{
9-
"http": "http://localhost" + port,
10-
"https": "https://localhost" + portSSL,
11-
"ws": "ws://localhost" + port,
12-
"wss": "wss://localhost" + portSSL,
9+
"version": version,
10+
"http": "http://localhost" + port,
11+
"https": "https://localhost" + portSSL,
12+
"ws": "ws://localhost" + port,
13+
"wss": "wss://localhost" + portSSL,
1314
})
1415
}

0 commit comments

Comments
 (0)