コード例 #1
0
ファイル: Client.php プロジェクト: BillingFuse/BillingFuse
 public function register(\Fuse_App &$app)
 {
     $app->post('/api/:role/:class/:method', 'post_method', array('role', 'class', 'method'), get_class($this));
     $app->get('/api/:role/:class/:method', 'get_method', array('role', 'class', 'method'), get_class($this));
     //all other requests are error requests
     $app->get('/api/:page', 'show_error', array('page' => '(.?)+'), get_class($this));
     $app->post('/api/:page', 'show_error', array('page' => '(.?)+'), get_class($this));
 }
コード例 #2
0
ファイル: Client.php プロジェクト: BillingFuse/BillingFuse
 public function register(\Fuse_App &$app)
 {
     $app->get('/invoice', 'get_invoices', array(), get_class($this));
     $app->post('/invoice', 'get_invoices', array(), get_class($this));
     $app->get('/invoice/:hash', 'get_invoice', array('hash' => '[a-z0-9]+'), get_class($this));
     $app->post('/invoice/:hash', 'get_invoice', array('hash' => '[a-z0-9]+'), get_class($this));
     $app->get('/invoice/print/:hash', 'get_invoice_print', array('hash' => '[a-z0-9]+'), get_class($this));
     $app->post('/invoice/print/:hash', 'get_invoice_print', array('hash' => '[a-z0-9]+'), get_class($this));
     $app->get('/invoice/banklink/:hash/:id', 'get_banklink', array('id' => '[0-9]+', 'hash' => '[a-z0-9]+'), get_class($this));
     $app->get('/invoice/thank-you/:hash', 'get_thankyoupage', array('hash' => '[a-z0-9]+'), get_class($this));
     $app->get('/invoice/pdf/:hash', 'get_pdf', array('hash' => '[a-z0-9]+'), get_class($this));
 }
コード例 #3
0
ファイル: Admin.php プロジェクト: BillingFuse/BillingFuse
 public function register(\Fuse_App &$app)
 {
     $app->get('/order', 'get_index', array(), get_class($this));
     $app->get('/order/', 'get_index', array(), get_class($this));
     $app->get('/order/index', 'get_index', array(), get_class($this));
     $app->get('/order/manage/:id', 'get_order', array('id' => '[0-9]+'), get_class($this));
     $app->post('/order/new', 'get_new', array(), get_class($this));
 }
コード例 #4
0
ファイル: Admin.php プロジェクト: BillingFuse/BillingFuse
 public function register(\Fuse_App &$app)
 {
     $app->get('/theme/:theme', 'get_theme', array('theme' => '[a-z0-9-_]+'), get_class($this));
     $app->post('/theme/:theme', 'save_theme_settings', array('theme' => '[a-z0-9-_]+'), get_class($this));
 }