mirror of
https://github.com/elyby/chrly.git
synced 2025-02-11 03:06:31 +05:30
Restore Ely documentation link on the 404 page
This commit is contained in:
parent
10ff6f34fb
commit
55b8c12955
@ -9,6 +9,7 @@ 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")
|
||||||
|
@ -22,6 +22,7 @@ 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))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user