summaryrefslogtreecommitdiff
path: root/app/router.go
diff options
context:
space:
mode:
authorlost+skunk <[email protected]>2024-09-04 20:22:58 +0300
committerlost+skunk <[email protected]>2024-09-04 20:22:58 +0300
commitc39399403e031a8c1ad53969770e4261d2c9e7aa (patch)
treeecac0ca1c9f095803abec42962d5aa31107676f1 /app/router.go
parent5a8a0987a2db22de6b9dd184bf40a3e2d16c5bbf (diff)
downloadskunky-art-c39399403e031a8c1ad53969770e4261d2c9e7aa.tar.gz
skunky-art-c39399403e031a8c1ad53969770e4261d2c9e7aa.tar.bz2
skunky-art-c39399403e031a8c1ad53969770e4261d2c9e7aa.zip
отображение ошибок
Diffstat (limited to 'app/router.go')
-rw-r--r--app/router.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/router.go b/app/router.go
index 2625374..32488cb 100644
--- a/app/router.go
+++ b/app/router.go
@@ -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)
}
}