We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5837b2 commit 771b59cCopy full SHA for 771b59c
packages/custom.go
@@ -12,10 +12,11 @@ var CustomReplacer = map[string]string{
12
}
13
14
func RegisterCustom(app *fiber.App) {
15
- for _, v := range CustomReplacer {
16
- app.All(fmt.Sprintf("/%s/*", v), func(c *fiber.Ctx) error {
17
- source := strings.TrimPrefix(c.Path(), fmt.Sprintf("/%s", v))
+ for k, v := range CustomReplacer {
+ app.All(fmt.Sprintf("/%s/*", k), func(c *fiber.Ctx) error {
+ source := strings.TrimPrefix(c.Path(), fmt.Sprintf("/%s", k))
18
uri := fmt.Sprintf("%s%s", v, source)
19
+ fmt.Println(uri)
20
resp, err := utils.Get(uri, nil)
21
if err != nil {
22
return Catch(c, err)
0 commit comments