mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-31 01:58:11 +08:00
maintain (path): absolute path
getting things ready to have config coming as a plugin to handle various distributions
This commit is contained in:
@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user