1
0
Fork 0
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:
Knut Ahlers 2020-01-11 21:05:11 +01:00
parent f42de6e8a9
commit b4981caa2a
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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
}