remove trailing / on leases API endpoint (#11959)
This commit is contained in:
parent
f882c31856
commit
fd517e6114
|
@ -107,7 +107,6 @@ func NewSystemBackend(core *Core, logger log.Logger) *SystemBackend {
|
|||
"leases/lookup/*",
|
||||
"storage/raft/snapshot-auto/config/*",
|
||||
"leases",
|
||||
"leases/",
|
||||
},
|
||||
|
||||
Unauthenticated: []string{
|
||||
|
|
|
@ -1253,7 +1253,7 @@ func (b *SystemBackend) leasePaths() []*framework.Path {
|
|||
},
|
||||
|
||||
{
|
||||
Pattern: "leases(/)?$",
|
||||
Pattern: "leases$",
|
||||
Fields: map[string]*framework.FieldSchema{
|
||||
"type": {
|
||||
Type: framework.TypeString,
|
||||
|
|
|
@ -58,7 +58,6 @@ func TestSystemBackend_RootPaths(t *testing.T) {
|
|||
"leases/lookup/*",
|
||||
"storage/raft/snapshot-auto/config/*",
|
||||
"leases",
|
||||
"leases/",
|
||||
}
|
||||
|
||||
b := testSystemBackend(t)
|
||||
|
|
Loading…
Reference in a new issue