Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
refactor: alterada forma de colocar o resolver de URL para Payload
Browse files Browse the repository at this point in the history
  • Loading branch information
CastilhoBB committed Sep 30, 2024
1 parent 545948a commit f366f8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,14 @@ func (c *Context) resolve(resolver string, param string) interface{} {
func (c *Context) resolveImpl(resolver string, param string) interface{} {
config := config.GetConfig()

url := fmt.Sprintf("%s/api/v1/resolve/%s", config.ResolverBridgeURL, resolver)
url := fmt.Sprintf("%s/api/v1/resolve/", config.ResolverBridgeURL)

url = strings.ReplaceAll(url, "//api/v1", "/api/v1")

input := resolveInputV1{
// Resolver: resolver,
Context: c.GetEntries(),
Load: []string{param},
Resolver: resolver,
Context: c.GetEntries(),
Load: []string{param},
}

log.Tracef("Resolving with '%s': %v", url, input)
Expand Down

0 comments on commit f366f8a

Please sign in to comment.