wip handle custom form submit

This commit is contained in:
asus
2024-03-14 01:18:31 +01:00
parent 12de8ee12f
commit 2f4a5bb9ef
16 changed files with 485 additions and 145 deletions

View File

@@ -13,7 +13,7 @@ if (!defined('ABSPATH')) {
// diff routes and endpoints : https://stackoverflow.com/q/56075017/9497573
function routes_endpoints_CIPF() {
PLGNTLS_class::debug_infos();
$base_rest_route = "cipf_plugin/api/v1";
$base_rest_route = PLGNTLS_class::BASE_REST_ROUTE;
register_rest_route($base_rest_route, '/orders', array(
'methods' => 'POST',
'callback' => 'handle_orders_request_CIPF',