Fix duplicate definition of path `sys/internal/specs/openapi` (#18553)

This was accidentally duplicated in #5687.

Remove the second definition, which was shadowed by the first, and move
the documentation that was part of the second to the surviving version.
This commit is contained in:
Max Bowsher 2023-01-05 03:48:40 +00:00 committed by GitHub
parent 6927478ab9
commit 7d87548f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 9 deletions

View File

@ -961,15 +961,7 @@ func (b *SystemBackend) internalPaths() []*framework.Path {
logical.ReadOperation: b.pathInternalOpenAPI,
logical.UpdateOperation: b.pathInternalOpenAPI,
},
},
{
Pattern: "internal/specs/openapi",
Operations: map[logical.Operation]framework.OperationHandler{
logical.ReadOperation: &framework.PathOperation{
Callback: b.pathInternalOpenAPI,
Summary: "Generate an OpenAPI 3 document of all mounted paths.",
},
},
HelpSynopsis: "Generate an OpenAPI 3 document of all mounted paths.",
},
{
Pattern: "internal/ui/feature-flags",