quick out addPAth

This commit is contained in:
mr
2024-10-02 10:18:33 +02:00
parent 4ec32bafa7
commit f26249ab8b
3 changed files with 28 additions and 40 deletions

View File

@@ -79,24 +79,6 @@ type LibData struct {
Err string `bson:"error" json:"error"`
}
// here is the singleton variable to store the paths that api will use
var paths map[LibDataEnum]string = map[LibDataEnum]string{}
// to get the paths
func GetPaths() map[LibDataEnum]string {
return paths
}
// to get the path
func GetPath(collection LibDataEnum) string {
return paths[collection]
}
// to add the path
func AddPath(collection LibDataEnum, path string) {
paths[collection] = path
}
func Init(appName string) {
config.SetAppName(appName) // set the app name to the logger to define the main log chan
// create a temporary console logger for init