mirror of
https://github.com/elyby/chrly.git
synced 2024-11-26 16:51:59 +05:30
Remove Ely.by documentation link from not found response
This commit is contained in:
parent
ce99ac8cf8
commit
a9f5632743
@ -5,11 +5,10 @@ import (
|
||||
"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{
|
||||
"status": "404",
|
||||
"status": "404",
|
||||
"message": "Not Found",
|
||||
"link": "http://docs.ely.by/skin-system.html",
|
||||
})
|
||||
|
||||
response.Header().Set("Content-Type", "application/json")
|
||||
|
@ -22,7 +22,6 @@ func TestConfig_NotFound(t *testing.T) {
|
||||
response, _ := ioutil.ReadAll(resp.Body)
|
||||
assert.JSONEq(`{
|
||||
"status": "404",
|
||||
"message": "Not Found",
|
||||
"link": "http://docs.ely.by/skin-system.html"
|
||||
"message": "Not Found"
|
||||
}`, string(response))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user