Browse Source

Set v2 as default api

master
Patrick G 1 year ago
parent
commit
86588bd700
Signed by: geek1011 GPG Key ID: A2FD79F68A2AB707
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      main.go

+ 1
- 1
main.go View File

@ -39,7 +39,7 @@ func main() {
v2.Mount(r)
r.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
http.Redirect(w, r, "/v1/", 301)
http.Redirect(w, r, "/v2/", 301)
})
log.Printf("Serving on %s", *addr)

Loading…
Cancel
Save