save json
This commit is contained in:
@@ -168,6 +168,11 @@ pub fn get_timeline(date: String, base_dir: String) -> Vec<serde_json::Value> {
|
||||
results
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn write_file(path: String, content: String) -> Result<(), String> {
|
||||
std::fs::write(&path, content).map_err(|e| e.to_string())
|
||||
}
|
||||
|
||||
pub fn start_engine(app: AppHandle) {
|
||||
// Start Cleanup routine
|
||||
let app_cleanup = app.clone();
|
||||
|
||||
Reference in New Issue
Block a user