← All changes
|
app/modules/import-export-customization/data/routes/base-route.php
+2
-2
4.3.0
→
3.31.4
View file →
| @@ -4,10 +4,10 @@ | ||
| 4 | 4 | |
| 5 | 5 | abstract class Base_Route { |
| 6 | 6 | public function __construct() {} |
| 7 | 7 | |
| 8 | - public function register_route( $name_space, $base_route ): void { | |
| 9 | - register_rest_route( $name_space, '/' . $base_route . '/' . $this->get_route(), [ | |
| 8 | + public function register_route( $namespace, $base_route ): void { | |
| 9 | + register_rest_route( $namespace, '/' . $base_route . '/' . $this->get_route(), [ | |
| 10 | 10 | [ |
| 11 | 11 | 'methods' => $this->get_method(), |
| 12 | 12 | 'callback' => fn( $request ) => $this->callback( $request ), |
| 13 | 13 | 'permission_callback' => $this->permission_callback(), |