| @@ -36,11 +36,11 @@ | ||
| 36 | 36 | $this->namespace, |
| 37 | 37 | $this->rest_base . '/oauth-redirect/', |
| 38 | 38 | [ |
| 39 | 39 | [ |
| 40 | - 'method' => WP_REST_Server::READABLE, | |
| 41 | - 'callback' => [$this->entryController, 'authRedirect'], | |
| 42 | - 'permission_callback'=> '__return_true' | |
| 40 | + 'methods' => WP_REST_Server::READABLE, | |
| 41 | + 'callback' => [$this->entryController, 'authRedirect'], | |
| 42 | + 'permission_callback' => '__return_true' | |
| 43 | 43 | ] |
| 44 | 44 | ] |
| 45 | 45 | ); |
| 46 | 46 | |