| 1 |
<?php |
| 2 |
|
| 3 |
namespace Better_Payment\Lite; |
| 4 |
|
| 5 |
/** |
| 6 |
* Exit if accessed directly |
| 7 |
*/ |
| 8 |
if (!defined('ABSPATH')) { |
| 9 |
exit; |
| 10 |
} |
| 11 |
|
| 12 |
/** |
| 13 |
* API Class |
| 14 |
* |
| 15 |
* @since 0.0.1 |
| 16 |
*/ |
| 17 |
class API extends Controller { |
| 18 |
|
| 19 |
/** |
| 20 |
* Initialize the class |
| 21 |
* |
| 22 |
* @since 0.0.1 |
| 23 |
*/ |
| 24 |
public function __construct() { |
| 25 |
add_action( 'rest_api_init', [ $this, 'register_api' ] ); |
| 26 |
} |
| 27 |
|
| 28 |
/** |
| 29 |
* Register the API |
| 30 |
* |
| 31 |
* @return void |
| 32 |
* @since 0.0.1 |
| 33 |
*/ |
| 34 |
public function register_api() { |
| 35 |
// |
| 36 |
} |
| 37 |
} |
| 38 |
|