mirror of
https://git.macaw.me/skunky/SkunkyArt.git
synced 2025-04-04 21:47:36 +03:00
фикс небольшого обосрамса
This commit is contained in:
parent
db53a8bd90
commit
5a8a0987a2
1 changed files with 2 additions and 1 deletions
|
@ -13,9 +13,10 @@ var Host, Path string
|
||||||
|
|
||||||
func Router() {
|
func Router() {
|
||||||
parsepath := func(path string) map[int]string {
|
parsepath := func(path string) map[int]string {
|
||||||
path = "/"
|
|
||||||
if l := len(CFG.URI); len(path) > l {
|
if l := len(CFG.URI); len(path) > l {
|
||||||
path = path[l-1:]
|
path = path[l-1:]
|
||||||
|
} else {
|
||||||
|
path = "/"
|
||||||
}
|
}
|
||||||
|
|
||||||
parsedpath := make(map[int]string)
|
parsedpath := make(map[int]string)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue