feat(be/settings): add api for reporting client error
This commit is contained in:
parent
4fd9bd9c33
commit
7577fb0ace
5 changed files with 67 additions and 2 deletions
|
@ -54,3 +54,10 @@ func (cl *SettingsClient) SetClientCfg(cfg *sitestore.ClientConfig, token *http.
|
|||
}).
|
||||
End()
|
||||
}
|
||||
|
||||
func (cl *SettingsClient) ReportError(report *settings.ClientErrorReport, token *http.Cookie) (*http.Response, string, []error) {
|
||||
return cl.r.Post(cl.url("/v1/settings/errors")).
|
||||
AddCookie(token).
|
||||
Send(report).
|
||||
End()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue