Browse Source

fix: miss slash in qr_link

pull/4/head
Aldino kemal 4 years ago
parent
commit
14129b3cb0
  1. 3
      controllers/app_controller.go

3
controllers/app_controller.go

@ -1,6 +1,7 @@
package controllers
import (
"fmt"
"github.com/aldinokemal/go-whatsapp-web-multidevice/services"
"github.com/aldinokemal/go-whatsapp-web-multidevice/utils"
"github.com/gofiber/fiber/v2"
@ -28,7 +29,7 @@ func (controller *AppController) Login(c *fiber.Ctx) error {
Code: 200,
Message: "Success",
Results: map[string]interface{}{
"qr_link": c.Hostname() + response.ImagePath,
"qr_link": fmt.Sprintf("%s/%s", c.Hostname(), response.ImagePath),
"qr_duration": response.Duration,
},
})

Loading…
Cancel
Save