Power_Automate_Provider::admin_routes()

Provides the routes that should be used to handle Power Automate Integration requests.

The map returned by this method will be used by the TEC\Event_Automator\Traits\With_Nonce_Routes trait.


Return

(TECEvent_AutomatorPower_Automatearray<string,callable>) A map from the nonce actions to the corresponding handlers.


Top ↑

Source

File: src/Common/Event_Automator/Power_Automate/Power_Automate_Provider.php

	public function admin_routes() {
		$actions = tribe( Actions::class );

		return [
			$actions::$add_connection    => $this->container->callback( Api::class, 'ajax_add_connection' ),
			$actions::$create_access     => $this->container->callback( Api::class, 'ajax_create_connection_access' ),
			$actions::$delete_connection => $this->container->callback( Api::class, 'ajax_delete_connection' ),
			$actions::$clear_action      => $this->container->callback( Endpoints_Manager::class, 'ajax_clear' ),
			$actions::$disable_action    => $this->container->callback( Endpoints_Manager::class, 'ajax_disable' ),
			$actions::$enable_action     => $this->container->callback( Endpoints_Manager::class, 'ajax_enable' ),
		];
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.