Skip to content

Commit 2834daf

Browse files
authored
fix highscores endpoints (#22)
1 parent 5179ba9 commit 2834daf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webserver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ func main() {
121121

122122
// Tibia highscores
123123
v3.GET("/highscores/world/:world", func(c *gin.Context) {
124-
c.Redirect(http.StatusMovedPermanently, v3.BasePath()+"/highscores/"+c.Param("world")+"/experience/"+TibiadataDefaultVoc)
124+
c.Redirect(http.StatusMovedPermanently, v3.BasePath()+"/highscores/world/"+c.Param("world")+"/experience/"+TibiadataDefaultVoc)
125125
})
126126
v3.GET("/highscores/world/:world/:category", func(c *gin.Context) {
127-
c.Redirect(http.StatusMovedPermanently, v3.BasePath()+"/highscores/"+c.Param("world")+"/"+c.Param("category")+"/"+TibiadataDefaultVoc)
127+
c.Redirect(http.StatusMovedPermanently, v3.BasePath()+"/highscores/world/"+c.Param("world")+"/"+c.Param("category")+"/"+TibiadataDefaultVoc)
128128
})
129129
v3.GET("/highscores/world/:world/:category/:vocation", TibiaHighscoresV3)
130130

0 commit comments

Comments
 (0)