mirror of
https://github.com/restic/rest-server.git
synced 2025-12-06 17:15:45 -08:00
Implement amended API protocol v2
The version is now selected via the HTTP request header "Accept".
This commit is contained in:
committed by
Zlatko Čalušić
parent
cd4d054887
commit
bf34e9d62d
2
mux.go
2
mux.go
@@ -72,8 +72,6 @@ func NewMux() *goji.Mux {
|
||||
mux.HandleFunc(pat.Post("/:repo/config"), SaveConfig)
|
||||
mux.HandleFunc(pat.Delete("/config"), DeleteConfig)
|
||||
mux.HandleFunc(pat.Delete("/:repo/config"), DeleteConfig)
|
||||
mux.HandleFunc(pat.Get("/v2/:type/"), ListBlobsV2)
|
||||
mux.HandleFunc(pat.Get("/v2/:repo/:type/"), ListBlobsV2)
|
||||
mux.HandleFunc(pat.Get("/:type/"), ListBlobs)
|
||||
mux.HandleFunc(pat.Get("/:repo/:type/"), ListBlobs)
|
||||
mux.HandleFunc(pat.Head("/:type/:name"), CheckBlob)
|
||||
|
||||
Reference in New Issue
Block a user