Skip to content

Commit

Permalink
fix: admin endpoint /schemas not redirecting to public endpoint (#2133
Browse files Browse the repository at this point in the history
)

Closes #2084
  • Loading branch information
omarhachach authored Jan 14, 2022
1 parent 0807a03 commit 413833f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions schema/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func (h *Handler) RegisterPublicRoutes(public *x.RouterPublic) {

func (h *Handler) RegisterAdminRoutes(admin *x.RouterAdmin) {
admin.GET(fmt.Sprintf("/%s/:id", SchemasPath), x.RedirectToPublicRoute(h.r))
admin.GET(fmt.Sprintf("/%s", SchemasPath), x.RedirectToPublicRoute(h.r))
}

// Raw JSON Schema
Expand Down

0 comments on commit 413833f

Please sign in to comment.