cloudflare/Cloudflare-Magento
Publicmirrored fromhttps://github.com/cloudflare/Cloudflare-Magento
Backend/PluginRoutes.php
33lines · modecode
| 1 | <?php |
| 2 | |
| 3 | namespace CloudFlare\Plugin\Backend; |
| 4 | |
| 5 | class PluginRoutes |
| 6 | { |
| 7 | public static $routes = array( |
| 8 | 'account' => array( |
| 9 | 'class' => 'CloudFlare\Plugin\Backend\PluginActions', |
| 10 | 'methods' => array( |
| 11 | 'POST' => array( |
| 12 | 'function' => 'postAccountSaveAPICredentials' |
| 13 | ) |
| 14 | ) |
| 15 | ), |
| 16 | 'plugin/:id/settings' => array( |
| 17 | 'class' => 'CloudFlare\Plugin\Backend\PluginActions', |
| 18 | 'methods' => array( |
| 19 | 'GET' => array( |
| 20 | 'function' => 'getPluginSettings' |
| 21 | ) |
| 22 | ) |
| 23 | ), |
| 24 | 'plugin/:id/settings/:human_readable_id' => array( |
| 25 | 'class' => 'CloudFlare\Plugin\Backend\PluginActions', |
| 26 | 'methods' => array( |
| 27 | 'PATCH' => array( |
| 28 | 'function' => 'patchPluginSettings' |
| 29 | ) |
| 30 | ) |
| 31 | ) |
| 32 | ); |
| 33 | } |