hypercall_api/directives/
mod.rs1use axum::{extract::FromRef, routing::post, Router};
2
3pub mod encoding;
4pub mod engine_check;
5pub mod handlers;
6pub mod json_types;
7pub mod models;
8pub mod onchain;
9pub mod typed_data;
10
11pub fn router<S>() -> Router<S>
12where
13 handlers::DirectiveAppState: FromRef<S>,
14 S: Clone + Send + Sync + 'static,
15{
16 Router::new()
17 .route("/v1/actions/:action_key", post(handlers::submit))
18 .route(
19 "/v1/actions/:action_key/typed-data",
20 post(handlers::typed_data),
21 )
22}