Folder actions

This commit is contained in:
Gregory Schier
2023-11-04 10:48:18 -07:00
parent 9471009b8b
commit de190ca8fa
7 changed files with 163 additions and 18 deletions

View File

@@ -405,6 +405,7 @@ async fn create_request(
workspace_id: &str,
name: &str,
sort_priority: f64,
folder_id: Option<&str>,
window: Window<Wry>,
db_instance: State<'_, Mutex<Pool<Sqlite>>>,
) -> Result<models::HttpRequest, String> {
@@ -415,6 +416,7 @@ async fn create_request(
workspace_id: workspace_id.to_string(),
name: name.to_string(),
method: "GET".to_string(),
folder_id: folder_id.map(|s| s.to_string()),
sort_priority,
..Default::default()
},