mirror of
https://git.macaw.me/skunky/SkunkyArt.git
synced 2025-04-03 21:17:35 +03:00
отображение ошибок
This commit is contained in:
parent
5a8a0987a2
commit
c39399403e
11 changed files with 74 additions and 35 deletions
|
@ -64,13 +64,13 @@ func Router() {
|
|||
|
||||
var skunky = skunkyart{Version: Release.Version}
|
||||
|
||||
skunky.Args = r.URL.Query()
|
||||
arg := skunky.Args.Get
|
||||
p, _ := strconv.Atoi(arg("p"))
|
||||
|
||||
skunky.Endpoint = path[1]
|
||||
skunky.API.main = &skunky
|
||||
skunky.Writer = w
|
||||
skunky.Args = r.URL.Query()
|
||||
skunky.BasePath = CFG.URI
|
||||
skunky.QueryRaw = arg("q")
|
||||
skunky.Query = u.QueryEscape(skunky.QueryRaw)
|
||||
|
@ -128,9 +128,9 @@ func Router() {
|
|||
skunky.API.Error("Not Found", 404)
|
||||
}
|
||||
|
||||
// 404
|
||||
default:
|
||||
skunky.ReturnHTTPError(404)
|
||||
// 404
|
||||
default:
|
||||
skunky.ReturnHTTPError(404)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue