Skip to content

Commit

Permalink
Merge pull request #59 from FriendsOfREDAXO/hotfix-category-problem
Browse files Browse the repository at this point in the history
fix category relation problem
  • Loading branch information
alxndr-w authored Jan 14, 2024
2 parents 39e7576 + e59d5c4 commit e031c56
Show file tree
Hide file tree
Showing 6 changed files with 858 additions and 919 deletions.
16 changes: 8 additions & 8 deletions boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@

if (rex_plugin::get('yform', 'rest')->isAvailable() && !rex::isSafeMode()) {
/* YForm Rest API */
$rex_neues_entry_route = new \rex_yform_rest_route(
$rex_neues_entry_route = new rex_yform_rest_route(
[
'path' => '/neues/4/date/',
'auth' => '\rex_yform_rest_auth_token::checkToken',
'type' => \neues_entry::class,
'query' => \neues_entry::query(),
'type' => neues_entry::class,
'query' => neues_entry::query(),
'get' => [
'fields' => [
'rex_neues_entry' => [
Expand Down Expand Up @@ -108,15 +108,15 @@
],
);

\rex_yform_rest::addRoute($rex_neues_entry_route);
rex_yform_rest::addRoute($rex_neues_entry_route);

/* YForm Rest API */
$rex_neues_category_route = new \rex_yform_rest_route(
$rex_neues_category_route = new rex_yform_rest_route(
[
'path' => '/neues/4/category/',
'auth' => '\rex_yform_rest_auth_token::checkToken',
'type' => \neues_category::class,
'query' => \neues_category::query(),
'type' => neues_category::class,
'query' => neues_category::query(),
'get' => [
'fields' => [
'rex_neues_category' => [
Expand Down Expand Up @@ -146,7 +146,7 @@
],
);

\rex_yform_rest::addRoute($rex_neues_category_route);
rex_yform_rest::addRoute($rex_neues_category_route);
}

rex_extension::register('YFORM_DATA_LIST', static function ($ep) {
Expand Down
Loading

0 comments on commit e031c56

Please sign in to comment.