| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yatra\Core\API; |
| 4 |
|
| 5 |
|
| 6 |
class TrackerAPI extends RestBase |
| 7 |
{ |
| 8 |
protected $method = \WP_REST_Server::READABLE; |
| 9 |
|
| 10 |
protected $rest_route_id = 'track'; |
| 11 |
|
| 12 |
protected $namespace = YATRA_REST_GENERAL_NAMESPACE; |
| 13 |
|
| 14 |
public function validate(\WP_REST_Request $request) |
| 15 |
{ |
| 16 |
return true; |
| 17 |
} |
| 18 |
|
| 19 |
public function handle(\WP_REST_Request $request) |
| 20 |
{ |
| 21 |
return new \WP_REST_Response(['status' => true], 200); |
| 22 |
} |
| 23 |
|
| 24 |
public static function init() |
| 25 |
{ |
| 26 |
return new self; |
| 27 |
} |
| 28 |
} |
| 29 |
|