mirror of
https://github.com/pikami/cosmium.git
synced 2025-12-21 09:50:35 +00:00
Implement state export endpoint
This commit is contained in:
@@ -29,3 +29,11 @@ func LoadStateFS(filePath string) {
|
||||
collections = state.Collections
|
||||
documents = state.Documents
|
||||
}
|
||||
|
||||
func GetState() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"databases": databases,
|
||||
"collections": collections,
|
||||
"documents": documents,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user