Skip to content

Commit 7a1197d

Browse files
committed
Fixed json:tibia_url reference to json:tibia_urls instead
1 parent 22ebb8d commit 7a1197d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/webserver.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ type OutInformation struct {
4545

4646
// Information stores some API related data
4747
type Information struct {
48-
APIDetails APIDetails `json:"api"` // The API details.
49-
Timestamp string `json:"timestamp"` // The timestamp from when the data was processed.
50-
TibiaURLs []string `json:"tibia_url"` // The links to the sources of the data on tibia.com.
51-
Status Status `json:"status"` // The response status information.
48+
APIDetails APIDetails `json:"api"` // The API details.
49+
Timestamp string `json:"timestamp"` // The timestamp from when the data was processed.
50+
TibiaURLs []string `json:"tibia_urls"` // The links to the sources of the data on tibia.com
51+
Status Status `json:"status"` // The response status information.
5252
}
5353

5454
// API details store information about this API
@@ -122,7 +122,7 @@ func runWebServer() {
122122
data := Information{
123123
APIDetails: TibiaDataAPIDetails,
124124
Timestamp: TibiaDataDatetime(""),
125-
TibiaURLs: []string{},
125+
TibiaURLs: []string{},
126126
Status: Status{
127127
HTTPCode: http.StatusOK,
128128
Message: "pong",
@@ -1091,7 +1091,7 @@ func TibiaDataErrorHandler(c *gin.Context, err error, httpCode int) {
10911091
info := Information{
10921092
APIDetails: TibiaDataAPIDetails,
10931093
Timestamp: TibiaDataDatetime(""),
1094-
TibiaURLs: []string{},
1094+
TibiaURLs: []string{},
10951095
Status: Status{
10961096
HTTPCode: httpCode,
10971097
},

0 commit comments

Comments
 (0)