Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Sep 4, 2024
1 parent a374603 commit 130c211
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ type ServiceHandler struct {

// AddRoutes adds routes.
func (h ServiceHandler) AddRoutes(e *gin.Engine) {
e.Any(ServiceRoot, h.ReverseProxy)
e.Any(ServiceRoot, h.Forward)
}

// ReverseProxy provides RBAC and forwards request to the service.
func (h ServiceHandler) ReverseProxy(ctx *gin.Context) {
// Forward provides RBAC and forwards request to the service.
func (h ServiceHandler) Forward(ctx *gin.Context) {
name := ctx.Param(Name)
path := ctx.Param(Wildcard)
Required(name)(ctx)
Expand Down

0 comments on commit 130c211

Please sign in to comment.