|
|
|
@ -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, |
|
|
|
}, |
|
|
|
}) |
|
|
|
|