treewide: cleanup
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ia01590cdeed872cc8ebd16f6ca95f3cc6a6a6964
This commit is contained in:
parent
0ba898c881
commit
185e3b562a
16 changed files with 258 additions and 219 deletions
|
|
@ -96,14 +96,11 @@ async fn execute_inline_action(
|
|||
action: &ActionDefinition,
|
||||
form_data: Option<&serde_json::Value>,
|
||||
) -> Result<ActionResult, String> {
|
||||
// Build URL from path
|
||||
let url = action.path.clone();
|
||||
|
||||
// Merge action params with form data into query string for GET, body for
|
||||
// others
|
||||
let method = to_reqwest_method(&action.method);
|
||||
|
||||
let mut request = client.raw_request(method.clone(), &url);
|
||||
let mut request = client.raw_request(method.clone(), &action.path);
|
||||
|
||||
// For GET, merge params into query string; for mutating methods, send as
|
||||
// JSON body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue