pub async fn create_function(
__arg0: State<Arc<AppState>>,
tenant: Option<Extension<TenantId>>,
auth: Option<Extension<AuthContext>>,
payload: Result<Json<CreateFunctionRequest>, JsonRejection>,
) -> ApiResult<Json<CreateFunctionResponse>>Expand description
POST /functions — deploy a new Wasm module.
Decodes the supplied base64, runs full wasmparser validation, and stores
the bytes refcounted via Arc<[u8]> so concurrent invocations do not
reallocate. Returns 400 invalid_wasm if validation fails.