Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add version in info
  • Loading branch information
matteosuppo committed Feb 1, 2016
commit e9b3e226b8feacd4b94c53f4b15ef7aabe67618e
9 changes: 5 additions & 4 deletions info.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (

func infoHandler(c *gin.Context) {
c.JSON(200, gin.H{
"http": "http://localhost" + port,
"https": "https://localhost" + portSSL,
"ws": "ws://localhost" + port,
"wss": "wss://localhost" + portSSL,
"version": version,
"http": "http://localhost" + port,
"https": "https://localhost" + portSSL,
"ws": "ws://localhost" + port,
"wss": "wss://localhost" + portSSL,
})
}