summaryrefslogtreecommitdiff
path: root/app/router.go
diff options
context:
space:
mode:
authorlost+skunk <[email protected]>2024-09-03 16:14:19 +0300
committerlost+skunk <[email protected]>2024-09-03 16:14:19 +0300
commit5a8a0987a2db22de6b9dd184bf40a3e2d16c5bbf (patch)
treec28afeb3da6187568c4c2d3defad0fccdeb71a4e /app/router.go
parentdb53a8bd9004098e6a1507e5826a833fd9efa954 (diff)
downloadskunky-art-5a8a0987a2db22de6b9dd184bf40a3e2d16c5bbf.tar.gz
skunky-art-5a8a0987a2db22de6b9dd184bf40a3e2d16c5bbf.tar.bz2
skunky-art-5a8a0987a2db22de6b9dd184bf40a3e2d16c5bbf.zip
фикс небольшого обосрамса
Diffstat (limited to 'app/router.go')
-rw-r--r--app/router.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/router.go b/app/router.go
index cc58f93..2625374 100644
--- a/app/router.go
+++ b/app/router.go
@@ -13,9 +13,10 @@ var Host, Path string
func Router() {
parsepath := func(path string) map[int]string {
- path = "/"
if l := len(CFG.URI); len(path) > l {
path = path[l-1:]
+ } else {
+ path = "/"
}
parsedpath := make(map[int]string)