Fix qr code generator functions
This commit is contained in:
parent
582aa952e4
commit
1ddba5ebb1
1 changed files with 2 additions and 2 deletions
|
|
@ -30,12 +30,12 @@ func (res *qrcodeR) Mailer(ctx context.Context, w http.ResponseWriter, r *http.R
|
|||
content := config.MakeURLReport("/mailer/%s", code)
|
||||
return writeQRCode(w, r, content)
|
||||
}
|
||||
func (res *qrcodeR) Marketing(w http.ResponseWriter, r *http.Request) *nhttp.ErrorWithStatus {
|
||||
func (res *qrcodeR) Marketing(ctx context.Context, w http.ResponseWriter, r *http.Request) *nhttp.ErrorWithStatus {
|
||||
content := "https://nidus.cloud"
|
||||
return writeQRCode(w, r, content)
|
||||
}
|
||||
|
||||
func (res *qrcodeR) Report(w http.ResponseWriter, r *http.Request) *nhttp.ErrorWithStatus {
|
||||
func (res *qrcodeR) Report(ctx context.Context, w http.ResponseWriter, r *http.Request) *nhttp.ErrorWithStatus {
|
||||
vars := mux.Vars(r)
|
||||
code := vars["code"]
|
||||
if code == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue