Remove Ely.by documentation link from not found response

This commit is contained in:
ErickSkrauch 2018-02-11 16:57:20 +03:00
parent ce99ac8cf8
commit a9f5632743
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E
2 changed files with 3 additions and 5 deletions

View File

@ -5,11 +5,10 @@ import (
"net/http" "net/http"
) )
func (cfg *Config) NotFound(response http.ResponseWriter, request *http.Request) { func (cfg *Config) NotFound(response http.ResponseWriter, request *http.Request) {
data, _ := json.Marshal(map[string]string{ data, _ := json.Marshal(map[string]string{
"status": "404", "status": "404",
"message": "Not Found", "message": "Not Found",
"link": "http://docs.ely.by/skin-system.html",
}) })
response.Header().Set("Content-Type", "application/json") response.Header().Set("Content-Type", "application/json")

View File

@ -22,7 +22,6 @@ func TestConfig_NotFound(t *testing.T) {
response, _ := ioutil.ReadAll(resp.Body) response, _ := ioutil.ReadAll(resp.Body)
assert.JSONEq(`{ assert.JSONEq(`{
"status": "404", "status": "404",
"message": "Not Found", "message": "Not Found"
"link": "http://docs.ely.by/skin-system.html"
}`, string(response)) }`, string(response))
} }