Skip to content

Commit

Permalink
Merge pull request #4263 from systeminit/fix(sdf)--Allow-getting-code…
Browse files Browse the repository at this point in the history
…_execution_history

fix(sdf): Allow getting code_execution_history
  • Loading branch information
stack72 authored Jul 31, 2024
2 parents 4d999af + b5d140a commit f010f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sdf-server/src/server/service/v2/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub mod create_unlocked_copy;
pub mod delete_func;
pub mod execute_func;
pub mod get_code;
mod get_func_run;
pub mod get_func_run;
pub mod list_all_funcs;
pub mod list_funcs;
pub mod save_code;
Expand Down Expand Up @@ -120,7 +120,7 @@ pub fn v2_routes() -> Router<AppState> {
.route("/", get(list_funcs::list_funcs))
.route("/including_pruned", get(list_all_funcs::list_all_funcs))
.route("/code", get(get_code::get_code)) // accepts a list of func_ids
.route("/runs/:func_run_id", get(get_code::get_code)) // accepts a list of func_ids
.route("/runs/:func_run_id", get(get_func_run::get_func_run)) // accepts a list of func_ids
.route("/", post(create_func::create_func))
.route("/:func_id", put(update_func::update_func)) // only save the func's metadata
.route("/:func_id/code", post(get_func_run::get_func_run)) // only saves func code
Expand Down

0 comments on commit f010f12

Please sign in to comment.