diff options
| author | lost+skunk <[email protected]> | 2024-09-03 16:14:19 +0300 |
|---|---|---|
| committer | lost+skunk <[email protected]> | 2024-09-03 16:14:19 +0300 |
| commit | 5a8a0987a2db22de6b9dd184bf40a3e2d16c5bbf (patch) | |
| tree | c28afeb3da6187568c4c2d3defad0fccdeb71a4e | |
| parent | db53a8bd9004098e6a1507e5826a833fd9efa954 (diff) | |
| download | skunky-art-5a8a0987a2db22de6b9dd184bf40a3e2d16c5bbf.tar.gz skunky-art-5a8a0987a2db22de6b9dd184bf40a3e2d16c5bbf.tar.bz2 skunky-art-5a8a0987a2db22de6b9dd184bf40a3e2d16c5bbf.zip | |
фикс небольшого обосрамса
| -rw-r--r-- | app/router.go | 3 |
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) |
