maintain (path): absolute path

getting things ready to have config coming as a plugin to handle
various distributions
This commit is contained in:
Mickael Kerjean
2023-03-02 20:15:56 +11:00
parent 8059730720
commit 8ca7a0e3f9
18 changed files with 34 additions and 40 deletions

View File

@ -8,12 +8,11 @@ import (
"io/ioutil"
"net/http"
"os"
"path/filepath"
"strconv"
"time"
)
var logpath = filepath.Join(GetCurrentDir(), LOG_PATH, "access.log")
var logpath = GetAbsolutePath(LOG_PATH, "access.log")
func AdminSessionGet(ctx *App, res http.ResponseWriter, req *http.Request) {
if admin := Config.Get("auth.admin").String(); admin == "" {