mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-08 14:10:05 +00:00
Fix order of routes
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
f42de6e8a9
commit
b4981caa2a
1 changed files with 1 additions and 3 deletions
|
@ -8,10 +8,8 @@ import (
|
|||
|
||||
func router() *mux.Router {
|
||||
r := mux.NewRouter()
|
||||
r.PathPrefix("/").HandlerFunc(gzipFunc(serveAssets))
|
||||
|
||||
registerAPIv2(r.PathPrefix("/v2").Subrouter())
|
||||
|
||||
r.PathPrefix("/").HandlerFunc(gzipFunc(serveAssets))
|
||||
return r
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue