Booking trace API

This commit is contained in:
mr
2024-08-21 16:03:56 +02:00
parent 6ef8cde225
commit 950bbf1d7b
4 changed files with 19 additions and 7 deletions

View File

@@ -69,10 +69,14 @@ type LibData struct {
Err string `bson:"error" json:"error"`
}
var paths map[LibDataEnum]interface{} = map[LibDataEnum]interface{}{}
var paths map[LibDataEnum]string = map[LibDataEnum]string{}
func GetPaths() map[LibDataEnum]string {
return paths
}
func GetPath(collection LibDataEnum) string {
return paths[collection].(string)
return paths[collection]
}
func AddPath(collection LibDataEnum, path string) {