Fixed base path
This commit is contained in:
@@ -7,12 +7,6 @@ import (
|
||||
"path"
|
||||
)
|
||||
|
||||
type pageBase struct {
|
||||
BasePath string
|
||||
}
|
||||
|
||||
var PageBase pageBase
|
||||
|
||||
var (
|
||||
ArticleRoot string
|
||||
|
||||
@@ -23,6 +17,10 @@ var (
|
||||
|
||||
DatabaseFile string
|
||||
FrontendDir string
|
||||
|
||||
// not specified in config
|
||||
|
||||
BasePath string
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -38,7 +36,5 @@ func init() {
|
||||
DatabaseFile = os.Getenv("DATABASE_FILE")
|
||||
FrontendDir = os.Getenv("FRONTEND_DIR")
|
||||
|
||||
PageBase = pageBase{
|
||||
BasePath: "http://" + path.Join(fmt.Sprintf("%s:%s", ServerAddress, ServerPort), Prefix) + "/",
|
||||
}
|
||||
BasePath = path.Join(fmt.Sprintf("%s:%s", ServerAddress, ServerPort), Prefix) + "/"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user