summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)