story-kit: merge 326_story_slack_slash_commands_for_pipeline_management

This commit is contained in:
Dave
2026-03-20 01:23:54 +00:00
parent ff1705f26c
commit 39707ce026
6 changed files with 344 additions and 4 deletions

View File

@@ -90,10 +90,15 @@ pub fn build_routes(
}
if let Some(sl_ctx) = slack_ctx {
route = route.at(
"/webhook/slack",
post(crate::slack::webhook_receive).data(sl_ctx),
);
route = route
.at(
"/webhook/slack",
post(crate::slack::webhook_receive).data(sl_ctx.clone()),
)
.at(
"/webhook/slack/command",
post(crate::slack::slash_command_receive).data(sl_ctx),
);
}
route.data(ctx_arc)