gosuki/database/utils.go
Chakib Ben Ziane 03d30e6704 VERY MUCH WIP big refactoring into browser modules
- inspired from golang database package and caddyserver modules
- Migrating from class style to interfaces
- FIX: browser provisioning is broken, config is not ready when the
  browser module is registered.
2022-10-23 15:08:06 +02:00

16 lines
225 B
Go

package database
import (
"path/filepath"
)
func GetDefaultDBPath() string {
return DefaultDBPath
}
func GetDBFullPath() string {
dbdir := GetDefaultDBPath()
dbpath := filepath.Join(dbdir, DBFileName)
return dbpath
}