Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

Commit 6a0baed

Browse files
committed
Secrets route with /raw and version v1beta
1 parent 8ae5029 commit 6a0baed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/restproxy/rest_proxy.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ func NewRESTProxy(client secrethub.Client, host string, port int) ClientProxy {
4545
}
4646

4747
func (p *restProxy) addRoutes(r *mux.Router) {
48-
v1 := r.PathPrefix("/v1/").Subrouter()
48+
v := r.PathPrefix("/v1beta/").Subrouter()
4949

50-
v1.PathPrefix("/secrets/").Handler(
51-
http.StripPrefix("/v1/secrets/", http.HandlerFunc(p.handleSecret)),
50+
v.PathPrefix("/secrets/").Handler(
51+
http.StripPrefix("/v1beta/secrets/raw/", http.HandlerFunc(p.handleSecret)),
5252
)
5353
}
5454

0 commit comments

Comments
 (0)