CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.0.4

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Backend/PluginRoutes.php

33lines · modecode

1<?php
2
3namespace CloudFlare\Plugin\Backend;
4
5class 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}