File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ func (p *PushOutput) RegisterRoutes() {
29
29
apiInstance := api .GetInstance ()
30
30
var apiEndpoint string
31
31
if apiInstance .ApiGroup != nil {
32
- apiEndpoint = apiInstance .Host + apiInstance . ApiGroup .BasePath () + "/fcm"
32
+ apiEndpoint = apiInstance .ApiGroup .BasePath () + "/fcm"
33
33
} else {
34
- apiEndpoint = apiInstance . Host + "/fcm"
34
+ apiEndpoint = "/fcm"
35
35
}
36
36
37
37
apiInstance .AddRoute ("POST" , "/fcm" , storeFCMToken )
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ type QRValue struct {
15
15
16
16
func generateQRPage (apiEndpoint string ) gin.HandlerFunc {
17
17
return func (c * gin.Context ) {
18
+ apiEndpoint = c .Request .Host + apiEndpoint
18
19
qrValue , err := json .Marshal (QRValue {
19
20
ApiEndpoint : apiEndpoint ,
20
21
})
You can’t perform that action at this time.
0 commit comments