We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8cebcf3 + 6bf88cd commit 4d42384Copy full SHA for 4d42384
pkg/index/service/service.go
@@ -86,6 +86,18 @@ func (bs *IndexService) SetupService(configPath string) error {
86
w.WriteHeader(http.StatusFound)
87
})
88
89
+ bs.ServiceRouter.HandleFunc("/minimal/latest.zst", func(w http.ResponseWriter, r *http.Request) {
90
+ value, err := bs.resolver.Resolve(context.Background(), "minimal/latest.zst")
91
+ if err != nil {
92
+ logger.Errorw("error resolving", "err", err)
93
+ w.WriteHeader(http.StatusBadGateway)
94
+ return
95
+ }
96
+
97
+ w.Header().Set("Location", value)
98
+ w.WriteHeader(http.StatusFound)
99
+ })
100
101
return bs.dumpRoutes(bs.ServiceRouter)
102
}
103
0 commit comments