Skip to content

Commit

Permalink
feat: endpoint updated
Browse files Browse the repository at this point in the history
  • Loading branch information
pronob1010 committed Dec 13, 2024
1 parent 8c943c3 commit a89fb53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/REST/ReverseWithdrawalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public function register_routes() {
'methods' => WP_REST_Server::READABLE,
'callback' => [ $this, 'get_transaction_types' ],
'permission_callback' => [ $this, 'get_transaction_types_permissions_check' ],
'args' => $this->get_collection_params(), // It returns a collection of items, can added pagination type support
],
'schema' => [ $this, 'get_public_item_schema_for_transaction_types' ],
]
Expand All @@ -114,6 +115,7 @@ public function register_routes() {
'methods' => WP_REST_Server::READABLE,
'callback' => [ $this, 'get_stores' ],
'permission_callback' => [ $this, 'get_stores_permissions_check' ],
'args' => $this->get_collection_params(), // This is a collection endpoint
],
'schema' => [ $this, 'get_public_schema_for_stores' ],
]
Expand Down

0 comments on commit a89fb53

Please sign in to comment.