当前位置: 首页>>代码示例>>PHP>>正文


PHP Registrar::delete方法代码示例

本文整理汇总了PHP中Illuminate\Contracts\Routing\Registrar::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP Registrar::delete方法的具体用法?PHP Registrar::delete怎么用?PHP Registrar::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Illuminate\Contracts\Routing\Registrar的用法示例。


在下文中一共展示了Registrar::delete方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: map

 /**
  * Define the api routes.
  *
  * @param \Illuminate\Contracts\Routing\Registrar $router
  */
 public function map(Registrar $router)
 {
     $router->group(['namespace' => 'Api', 'prefix' => 'api/v1', 'middleware' => ['accept:application/json', 'timezone', 'auth.api.optional']], function ($router) {
         // General
         $router->get('ping', 'GeneralController@ping');
         // Projects
         $router->get('projects', 'ProjectController@getProjects');
         $router->get('projects/teams', 'ProjectTeamController@getTeams');
         $router->get('projects/teams/{project_team}', 'ProjectTeamController@getTeam');
         $router->get('projects/{project}', 'ProjectController@getProject');
         // Issues
         $router->get('issues', 'IssueController@getIssues');
         $router->get('issues/{issue}', 'IssueController@getIssue');
         // Authorization Required
         $router->group(['middleware' => 'auth.api'], function ($router) {
             $router->get('subscribers', 'SubscriberController@getSubscribers');
             $router->post('projects', 'ProjectController@postProjects');
             $router->post('projects/teams', 'ProjectTeamController@postTeams');
             $router->post('issues', 'IssueController@postIssues');
             $router->post('subscribers', 'SubscriberController@postSubscribers');
             $router->put('projects/teams/{project_team}', 'ProjectTeamController@putTeam');
             $router->put('projects/{project}', 'ProjectController@putProject');
             $router->put('issues/{issue}', 'IssueController@putIssue');
             $router->delete('projects/teams/{project_team}', 'ProjectTeamController@deleteTeam');
             $router->delete('projects/{project}', 'ProjectController@deleteProject');
             $router->delete('issues/{issue}', 'IssueController@deleteIssue');
             $router->delete('subscribers/{subscriber}', 'SubscriberController@deleteSubscriber');
         });
     });
 }
开发者ID:xiuchanghu,项目名称:Gitamin,代码行数:35,代码来源:ApiRoutes.php

示例2: map

 /**
  * Define the api routes.
  *
  * @param \Illuminate\Contracts\Routing\Registrar $router
  */
 public function map(Registrar $router)
 {
     $router->group(['namespace' => 'Api', 'prefix' => 'api/v1', 'middleware' => 'accept:application/json'], function ($router) {
         // General
         $router->get('ping', 'GeneralController@ping');
         // Components
         $router->get('components', 'ComponentController@getComponents');
         $router->get('components/{component}', 'ComponentController@getComponent');
         // Incidents
         $router->get('incidents', 'IncidentController@getIncidents');
         $router->get('incidents/{incident}', 'IncidentController@getIncident');
         // Metrics
         $router->get('metrics', 'MetricController@getMetrics');
         $router->get('metrics/{metric}', 'MetricController@getMetric');
         $router->get('metrics/{metric}/points', 'MetricController@getMetricPoints');
         // Api protected
         $router->group(['middleware' => 'auth.api'], function ($router) {
             $router->post('components', 'ComponentController@postComponents');
             $router->post('incidents', 'IncidentController@postIncidents');
             $router->post('metrics', 'MetricController@postMetrics');
             $router->post('metrics/{metric}/points', 'MetricPointController@postMetricPoints');
             $router->put('components/{component}', 'ComponentController@putComponent');
             $router->put('incidents/{incident}', 'IncidentController@putIncident');
             $router->put('metrics/{metric}', 'MetricController@putMetric');
             $router->put('metrics/{metric}/points/{metric_point}', 'MetricPointController@putMetricPoint');
             $router->delete('components/{component}', 'ComponentController@deleteComponent');
             $router->delete('incidents/{incident}', 'IncidentController@deleteIncident');
             $router->delete('metrics/{metric}', 'MetricController@deleteMetric');
             $router->delete('metrics/{metric}/points/{metric_point}', 'MetricPointController@deleteMetricPoint');
         });
     });
 }
开发者ID:nguyentamvinhlong,项目名称:Cachet,代码行数:37,代码来源:ApiRoutes.php

示例3: map

 /**
  * Define the account routes.
  *
  * @param \Illuminate\Contracts\Routing\Registrar $router
  *
  * @return void
  */
 public function map(Registrar $router)
 {
     $router->post('auth/login', ['as' => 'auth_login', 'uses' => 'AuthController@handleLogin']);
     $router->get('auth/github-callback', ['as' => 'auth_callback', 'uses' => 'AuthController@handleCallback']);
     $router->post('auth/logout', ['as' => 'auth_logout', 'uses' => 'AuthController@handleLogout']);
     $router->get('account', ['as' => 'account', 'uses' => 'AccountController@handleShow']);
     $router->delete('account/delete', ['as' => 'account_delete', 'uses' => 'AccountController@handleDelete']);
 }
开发者ID:clarkeash,项目名称:StyleCI,代码行数:15,代码来源:AccountRoutes.php

示例4: map

 /**
  * Define the api routes.
  *
  * @param \Illuminate\Contracts\Routing\Registrar $router
  *
  * @return void
  */
 public function map(Registrar $router)
 {
     $router->group(['namespace' => 'Api', 'prefix' => 'api/v1', 'middleware' => ['api']], function (Registrar $router) {
         $router->group(['middleware' => ['auth.api']], function (Registrar $router) {
             $router->get('ping', 'GeneralController@ping');
             $router->get('version', 'GeneralController@version');
             $router->get('status', 'GeneralController@status');
             $router->get('components', 'ComponentController@getComponents');
             $router->get('components/groups', 'ComponentGroupController@getGroups');
             $router->get('components/groups/{component_group}', 'ComponentGroupController@getGroup');
             $router->get('components/{component}', 'ComponentController@getComponent');
             $router->get('incidents', 'IncidentController@getIncidents');
             $router->get('incidents/{incident}', 'IncidentController@getIncident');
             $router->get('metrics', 'MetricController@getMetrics');
             $router->get('metrics/{metric}', 'MetricController@getMetric');
             $router->get('metrics/{metric}/points', 'MetricController@getMetricPoints');
         });
         $router->group(['middleware' => ['auth.api:true']], function (Registrar $router) {
             $router->get('subscribers', 'SubscriberController@getSubscribers');
             $router->post('components', 'ComponentController@postComponents');
             $router->post('components/groups', 'ComponentGroupController@postGroups');
             $router->post('incidents', 'IncidentController@postIncidents');
             $router->post('metrics', 'MetricController@postMetrics');
             $router->post('metrics/{metric}/points', 'MetricPointController@postMetricPoints');
             $router->post('subscribers', 'SubscriberController@postSubscribers');
             $router->put('components/groups/{component_group}', 'ComponentGroupController@putGroup');
             $router->put('components/{component}', 'ComponentController@putComponent');
             $router->put('incidents/{incident}', 'IncidentController@putIncident');
             $router->put('metrics/{metric}', 'MetricController@putMetric');
             $router->put('metrics/{metric}/points/{metric_point}', 'MetricPointController@putMetricPoint');
             $router->delete('components/groups/{component_group}', 'ComponentGroupController@deleteGroup');
             $router->delete('components/{component}', 'ComponentController@deleteComponent');
             $router->delete('incidents/{incident}', 'IncidentController@deleteIncident');
             $router->delete('metrics/{metric}', 'MetricController@deleteMetric');
             $router->delete('metrics/{metric}/points/{metric_point}', 'MetricPointController@deleteMetricPoint');
             $router->delete('subscribers/{subscriber}', 'SubscriberController@deleteSubscriber');
             $router->delete('subscriptions/{subscription}', 'SubscriberController@deleteSubscription');
         });
     });
 }
开发者ID:aksalj,项目名称:Cachet,代码行数:47,代码来源:ApiRoutes.php

示例5: map

 /**
  * Define the api routes.
  *
  * @param \Illuminate\Contracts\Routing\Registrar $router
  */
 public function map(Registrar $router)
 {
     $router->group(['namespace' => 'Api', 'prefix' => 'api/v1', 'middleware' => ['accept:application/json', 'timezone', 'auth.api.optional']], function ($router) {
         // General
         $router->get('ping', 'GeneralController@ping');
         // Components
         $router->get('components', 'ComponentController@getComponents');
         $router->get('components/groups', 'ComponentGroupController@getGroups');
         $router->get('components/groups/{component_group}', 'ComponentGroupController@getGroup');
         $router->get('components/{component}', 'ComponentController@getComponent');
         // Incidents
         $router->get('incidents', 'IncidentController@getIncidents');
         $router->get('incidents/{incident}', 'IncidentController@getIncident');
         // Metrics
         $router->get('metrics', 'MetricController@getMetrics');
         $router->get('metrics/{metric}', 'MetricController@getMetric');
         $router->get('metrics/{metric}/points', 'MetricController@getMetricPoints');
         // Authorization Required
         $router->group(['middleware' => 'auth.api'], function ($router) {
             $router->get('subscribers', 'SubscriberController@getSubscribers');
             $router->post('components', 'ComponentController@postComponents');
             $router->post('components/groups', 'ComponentGroupController@postGroups');
             $router->post('incidents', 'IncidentController@postIncidents');
             $router->post('metrics', 'MetricController@postMetrics');
             $router->post('metrics/{metric}/points', 'MetricPointController@postMetricPoints');
             $router->post('subscribers', 'SubscriberController@postSubscribers');
             $router->put('components/groups/{component_group}', 'ComponentGroupController@putGroup');
             $router->put('components/{component}', 'ComponentController@putComponent');
             $router->put('incidents/{incident}', 'IncidentController@putIncident');
             $router->put('metrics/{metric}', 'MetricController@putMetric');
             $router->put('metrics/{metric}/points/{metric_point}', 'MetricPointController@putMetricPoint');
             $router->delete('components/groups/{component_group}', 'ComponentGroupController@deleteGroup');
             $router->delete('components/{component}', 'ComponentController@deleteComponent');
             $router->delete('incidents/{incident}', 'IncidentController@deleteIncident');
             $router->delete('metrics/{metric}', 'MetricController@deleteMetric');
             $router->delete('metrics/{metric}/points/{metric_point}', 'MetricPointController@deleteMetricPoint');
             $router->delete('subscribers/{subscriber}', 'SubscriberController@deleteSubscriber');
         });
     });
 }
开发者ID:guduchango,项目名称:Cachet,代码行数:45,代码来源:ApiRoutes.php

示例6: delete

 /**
  * Register a new DELETE route with the router.
  *
  * @param  string                $uri
  * @param  Closure|array|string  $action
  */
 public function delete($uri, $action)
 {
     $this->router->delete($uri, $action);
 }
开发者ID:dprabhath,项目名称:SEP_WE_016,代码行数:10,代码来源:RouteRegister.php

示例7: map

 /**
  * Define the dashboard routes.
  *
  * @param \Illuminate\Contracts\Routing\Registrar $router
  */
 public function map(Registrar $router)
 {
     $router->group(['middleware' => 'auth', 'prefix' => 'dashboard', 'namespace' => 'Dashboard', 'as' => 'dashboard.'], function ($router) {
         // Dashboard
         $router->get('/', ['as' => 'index', 'uses' => 'DashboardController@showDashboard']);
         // Components
         $router->group(['as' => 'components.', 'prefix' => 'components'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'ComponentController@showComponents']);
             $router->get('add', ['as' => 'add', 'uses' => 'ComponentController@showAddComponent']);
             $router->post('add', 'ComponentController@createComponentAction');
             $router->get('groups', ['as' => 'groups', 'uses' => 'ComponentController@showComponentGroups']);
             $router->get('groups/add', ['as' => 'groups.add', 'uses' => 'ComponentController@showAddComponentGroup']);
             $router->get('groups/edit/{component_group}', ['as' => 'groups.edit', 'uses' => 'ComponentController@showEditComponentGroup']);
             $router->post('groups/edit/{component_group}', 'ComponentController@updateComponentGroupAction');
             $router->delete('groups/{component_group}/delete', 'ComponentController@deleteComponentGroupAction');
             $router->post('groups/add', 'ComponentController@postAddComponentGroup');
             $router->get('{component}/edit', ['as' => 'edit', 'uses' => 'ComponentController@showEditComponent']);
             $router->delete('{component}/delete', 'ComponentController@deleteComponentAction');
             $router->post('{component}/edit', 'ComponentController@updateComponentAction');
         });
         // Incidents
         $router->group(['as' => 'incidents.', 'prefix' => 'incidents'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'IncidentController@showIncidents']);
             $router->get('add', ['as' => 'add', 'uses' => 'IncidentController@showAddIncident']);
             $router->post('add', 'IncidentController@createIncidentAction');
             $router->delete('{incident}/delete', ['as' => 'delete', 'uses' => 'IncidentController@deleteIncidentAction']);
             $router->get('{incident}/edit', ['as' => 'edit', 'uses' => 'IncidentController@showEditIncidentAction']);
             $router->post('{incident}/edit', 'IncidentController@editIncidentAction');
         });
         // Scheduled Maintenance
         $router->group(['as' => 'schedule.', 'prefix' => 'schedule'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'ScheduleController@showIndex']);
             $router->get('add', ['as' => 'add', 'uses' => 'ScheduleController@showAddSchedule']);
             $router->post('add', 'ScheduleController@addScheduleAction');
             $router->get('{incident}/edit', ['as' => 'edit', 'uses' => 'ScheduleController@showEditSchedule']);
             $router->post('{incident}/edit', 'ScheduleController@editScheduleAction');
             $router->delete('{incident}/delete', ['as' => 'delete', 'uses' => 'ScheduleController@deleteScheduleAction']);
         });
         // Incident Templates
         $router->group(['as' => 'templates.', 'prefix' => 'templates'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'IncidentController@showTemplates']);
             $router->get('add', ['as' => 'add', 'uses' => 'IncidentController@showAddIncidentTemplate']);
             $router->post('add', 'IncidentController@createIncidentTemplateAction');
             $router->get('{incident_template}/edit', ['as' => 'edit', 'uses' => 'IncidentController@showEditTemplateAction']);
             $router->post('{incident_template}/edit', 'IncidentController@editTemplateAction');
             $router->delete('{incident_template}/delete', 'IncidentController@deleteTemplateAction');
         });
         // Subscribers
         $router->group(['as' => 'subscribers.', 'prefix' => 'subscribers'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'SubscriberController@showSubscribers']);
             $router->get('add', ['as' => 'add', 'uses' => 'SubscriberController@showAddSubscriber']);
             $router->post('add', 'SubscriberController@createSubscriberAction');
             $router->delete('{subscriber}/delete', 'SubscriberController@deleteSubscriberAction');
         });
         // Metrics
         $router->group(['as' => 'metrics.', 'prefix' => 'metrics'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'MetricController@showMetrics']);
             $router->get('add', ['as' => 'add', 'uses' => 'MetricController@showAddMetric']);
             $router->post('add', 'MetricController@createMetricAction');
             $router->delete('{metric}/delete', 'MetricController@deleteMetricAction');
             $router->get('{metric}/edit', ['as' => 'edit', 'uses' => 'MetricController@showEditMetricAction']);
             $router->post('{metric}/edit', 'MetricController@editMetricAction');
         });
         // Team Members
         $router->group(['as' => 'team.', 'prefix' => 'team'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'TeamController@showTeamView']);
             $router->group(['middleware' => 'admin'], function ($router) {
                 $router->get('add', ['as' => 'add', 'uses' => 'TeamController@showAddTeamMemberView']);
                 $router->get('{user}', 'TeamController@showTeamMemberView');
                 $router->post('add', 'TeamController@postAddUser');
                 $router->post('{user}', 'TeamController@postUpdateUser');
                 $router->delete('{user}/delete', 'TeamController@deleteUser');
             });
         });
         // Settings
         $router->group(['as' => 'settings.', 'prefix' => 'settings'], function ($router) {
             $router->get('setup', ['as' => 'setup', 'uses' => 'SettingsController@showSetupView']);
             $router->get('security', ['as' => 'security', 'uses' => 'SettingsController@showSecurityView']);
             $router->get('theme', ['as' => 'theme', 'uses' => 'SettingsController@showThemeView']);
             $router->get('stylesheet', ['as' => 'stylesheet', 'uses' => 'SettingsController@showStylesheetView']);
             $router->post('/', 'SettingsController@postSettings');
         });
         // User Settings
         $router->group(['prefix' => 'user'], function ($router) {
             $router->get('/', ['as' => 'user', 'uses' => 'UserController@showUser']);
             $router->post('/', 'UserController@postUser');
             $router->get('{user}/api/regen', 'UserController@regenerateApiKey');
         });
         /*
          * Internal API.
          * This should only be used for making requests within the dashboard.
          */
         $router->group(['prefix' => 'api'], function ($router) {
             $router->get('incidents/templates', 'ApiController@getIncidentTemplate');
             $router->post('components/groups/order', 'ApiController@postUpdateComponentGroupOrder');
//.........这里部分代码省略.........
开发者ID:practico,项目名称:Cachet,代码行数:101,代码来源:DashboardRoutes.php

示例8: map

 /**
  * Define the dashboard routes.
  *
  * @param \Illuminate\Contracts\Routing\Registrar $router
  *
  * @return void
  */
 public function map(Registrar $router)
 {
     $router->group(['middleware' => ['web', 'auth'], 'prefix' => 'dashboard', 'namespace' => 'Dashboard', 'as' => 'dashboard.'], function ($router) {
         $router->get('/', ['as' => 'index', 'uses' => 'DashboardController@showDashboard']);
         $router->group(['as' => 'components.', 'prefix' => 'components'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'ComponentController@showComponents']);
             $router->get('add', ['as' => 'add', 'uses' => 'ComponentController@showAddComponent']);
             $router->post('add', 'ComponentController@createComponentAction');
             $router->get('groups', ['as' => 'groups', 'uses' => 'ComponentController@showComponentGroups']);
             $router->get('groups/add', ['as' => 'groups.add', 'uses' => 'ComponentController@showAddComponentGroup']);
             $router->get('groups/edit/{component_group}', ['as' => 'groups.edit', 'uses' => 'ComponentController@showEditComponentGroup']);
             $router->post('groups/edit/{component_group}', 'ComponentController@updateComponentGroupAction');
             $router->delete('groups/{component_group}/delete', 'ComponentController@deleteComponentGroupAction');
             $router->post('groups/add', 'ComponentController@postAddComponentGroup');
             $router->get('{component}/edit', ['as' => 'edit', 'uses' => 'ComponentController@showEditComponent']);
             $router->delete('{component}/delete', 'ComponentController@deleteComponentAction');
             $router->post('{component}/edit', 'ComponentController@updateComponentAction');
         });
         $router->group(['as' => 'incidents.', 'prefix' => 'incidents'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'IncidentController@showIncidents']);
             $router->get('add', ['as' => 'add', 'uses' => 'IncidentController@showAddIncident']);
             $router->post('add', 'IncidentController@createIncidentAction');
             $router->delete('{incident}/delete', ['as' => 'delete', 'uses' => 'IncidentController@deleteIncidentAction']);
             $router->get('{incident}/edit', ['as' => 'edit', 'uses' => 'IncidentController@showEditIncidentAction']);
             $router->post('{incident}/edit', 'IncidentController@editIncidentAction');
         });
         $router->group(['as' => 'schedule.', 'prefix' => 'schedule'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'ScheduleController@showIndex']);
             $router->get('add', ['as' => 'add', 'uses' => 'ScheduleController@showAddSchedule']);
             $router->post('add', 'ScheduleController@addScheduleAction');
             $router->get('{incident}/edit', ['as' => 'edit', 'uses' => 'ScheduleController@showEditSchedule']);
             $router->post('{incident}/edit', 'ScheduleController@editScheduleAction');
             $router->delete('{incident}/delete', ['as' => 'delete', 'uses' => 'ScheduleController@deleteScheduleAction']);
         });
         $router->group(['as' => 'templates.', 'prefix' => 'templates'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'IncidentController@showTemplates']);
             $router->get('add', ['as' => 'add', 'uses' => 'IncidentController@showAddIncidentTemplate']);
             $router->post('add', 'IncidentController@createIncidentTemplateAction');
             $router->get('{incident_template}/edit', ['as' => 'edit', 'uses' => 'IncidentController@showEditTemplateAction']);
             $router->post('{incident_template}/edit', 'IncidentController@editTemplateAction');
             $router->delete('{incident_template}/delete', 'IncidentController@deleteTemplateAction');
         });
         $router->group(['as' => 'subscribers.', 'prefix' => 'subscribers'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'SubscriberController@showSubscribers']);
             $router->get('add', ['as' => 'add', 'uses' => 'SubscriberController@showAddSubscriber']);
             $router->post('add', 'SubscriberController@createSubscriberAction');
             $router->delete('{subscriber}/delete', 'SubscriberController@deleteSubscriberAction');
         });
         $router->group(['as' => 'metrics.', 'prefix' => 'metrics'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'MetricController@showMetrics']);
             $router->get('add', ['as' => 'add', 'uses' => 'MetricController@showAddMetric']);
             $router->post('add', 'MetricController@createMetricAction');
             $router->delete('{metric}/delete', 'MetricController@deleteMetricAction');
             $router->get('{metric}/edit', ['as' => 'edit', 'uses' => 'MetricController@showEditMetricAction']);
             $router->post('{metric}/edit', 'MetricController@editMetricAction');
         });
         $router->group(['as' => 'team.', 'prefix' => 'team'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'TeamController@showTeamView']);
             $router->group(['middleware' => 'admin'], function ($router) {
                 $router->get('add', ['as' => 'add', 'uses' => 'TeamController@showAddTeamMemberView']);
                 $router->get('invite', ['as' => 'invite', 'uses' => 'TeamController@showInviteTeamMemberView']);
                 $router->get('{user}', 'TeamController@showTeamMemberView');
                 $router->post('add', 'TeamController@postAddUser');
                 $router->post('invite', 'TeamController@postInviteUser');
                 $router->post('{user}', 'TeamController@postUpdateUser');
                 $router->delete('{user}/delete', 'TeamController@deleteUser');
             });
         });
         $router->group(['as' => 'settings.', 'prefix' => 'settings'], function ($router) {
             $router->get('setup', ['as' => 'setup', 'uses' => 'SettingsController@showSetupView']);
             $router->get('analytics', ['as' => 'analytics', 'uses' => 'SettingsController@showAnalyticsView']);
             $router->get('localization', ['as' => 'localization', 'uses' => 'SettingsController@showLocalizationView']);
             $router->get('security', ['as' => 'security', 'uses' => 'SettingsController@showSecurityView']);
             $router->get('theme', ['as' => 'theme', 'uses' => 'SettingsController@showThemeView']);
             $router->get('stylesheet', ['as' => 'stylesheet', 'uses' => 'SettingsController@showStylesheetView']);
             $router->post('/', 'SettingsController@postSettings');
         });
         $router->group(['prefix' => 'user'], function ($router) {
             $router->get('/', ['as' => 'user', 'uses' => 'UserController@showUser']);
             $router->post('/', 'UserController@postUser');
             $router->get('{user}/api/regen', 'UserController@regenerateApiKey');
         });
         $router->group(['prefix' => 'api'], function ($router) {
             $router->get('incidents/templates', 'ApiController@getIncidentTemplate');
             $router->post('components/groups/order', 'ApiController@postUpdateComponentGroupOrder');
             $router->post('components/order', 'ApiController@postUpdateComponentOrder');
             $router->post('components/{component}', 'ApiController@postUpdateComponent');
             $router->get('system/version', 'ApiController@checkVersion');
         });
     });
 }
开发者ID:mohitsethi,项目名称:Cachet,代码行数:98,代码来源:DashboardRoutes.php

示例9: map

 /**
  * Define the dashboard routes.
  *
  * @param \Illuminate\Contracts\Routing\Registrar $router
  */
 public function map(Registrar $router)
 {
     $router->group(['middleware' => 'auth', 'prefix' => 'dashboard', 'namespace' => 'Dashboard', 'as' => 'dashboard.'], function ($router) {
         // Dashboard
         $router->get('/', ['as' => 'index', 'uses' => 'DashboardController@showDashboard']);
         // Projects
         $router->group(['as' => 'projects.', 'prefix' => 'projects'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'ProjectController@showProjects']);
             $router->get('add', ['as' => 'add', 'uses' => 'ProjectController@showAddProject']);
             $router->post('add', 'ProjectController@createProjectAction');
             $router->get('{project}', ['as' => 'show', 'uses' => 'ProjectController@showProject']);
             $router->get('{project}/edit', ['as' => 'edit', 'uses' => 'ProjectController@showEditProject']);
             $router->delete('{project}/delete', 'ProjectController@deleteProjectAction');
             $router->post('{project}/edit', 'ProjectController@updateProjectAction');
         });
         //Teams
         $router->group(['as' => 'teams.', 'prefix' => 'teams'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'TeamController@showProjectTeams']);
             $router->get('add', ['as' => 'add', 'uses' => 'TeamController@showAddProjectTeam']);
             $router->get('edit/{project_team}', ['as' => 'edit', 'uses' => 'TeamController@showEditProjectTeam']);
             $router->post('edit/{project_team}', 'TeamController@updateProjectTeamAction');
             $router->delete('{project_team}/delete', 'TeamController@deleteProjectTeamAction');
             $router->post('add', 'TeamController@postAddProjectTeam');
         });
         // Activities
         $router->group(['as' => 'activities.', 'prefix' => 'activities'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'ActivityController@showActivities']);
         });
         // Milestones
         $router->group(['as' => 'milestones.', 'prefix' => 'milestones'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'MilestoneController@showMilestones']);
         });
         // Merge Requests
         $router->group(['as' => 'merge_requests.', 'prefix' => 'merge_requests'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'MergeRequestController@showMergeRequests']);
         });
         // Snippets
         $router->group(['as' => 'snippets.', 'prefix' => 'snippets'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'SnippetController@showSnippets']);
         });
         // Issues
         $router->group(['as' => 'issues.', 'prefix' => 'issues'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'IssueController@showIssues']);
             $router->get('add', ['as' => 'add', 'uses' => 'IssueController@showAddIssue']);
             $router->post('add', 'IssueController@createIssueAction');
             $router->delete('{issue}/delete', ['as' => 'delete', 'uses' => 'IssueController@deleteIssueAction']);
             $router->get('{issue}/edit', ['as' => 'edit', 'uses' => 'IssueController@showEditIssueAction']);
             $router->post('{issue}/edit', 'IssueController@editIssueAction');
         });
         // Subscribers
         $router->group(['as' => 'subscribers.', 'prefix' => 'subscribers'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'SubscriberController@showSubscribers']);
             $router->get('add', ['as' => 'add', 'uses' => 'SubscriberController@showAddSubscriber']);
             $router->post('add', 'SubscriberController@createSubscriberAction');
             $router->delete('{subscriber}/delete', 'SubscriberController@deleteSubscriberAction');
         });
         // Group Members
         $router->group(['as' => 'group.', 'prefix' => 'group'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'GroupController@showGroupView']);
             $router->group(['middleware' => 'admin'], function ($router) {
                 $router->get('add', ['as' => 'add', 'uses' => 'GroupController@showAddGroupMemberView']);
                 $router->get('invite', ['as' => 'invite', 'uses' => 'GroupController@showInviteGroupMemberView']);
                 $router->get('{user}', 'GroupController@showGroupMemberView');
                 $router->post('add', 'GroupController@postAddUser');
                 $router->post('invite', 'GroupController@postInviteUser');
                 $router->post('{user}', 'GroupController@postUpdateUser');
                 $router->delete('{user}/delete', 'GroupController@deleteUser');
             });
         });
         // Settings
         $router->group(['as' => 'settings.', 'prefix' => 'settings'], function ($router) {
             $router->get('general', ['as' => 'general', 'uses' => 'SettingsController@showGeneralView']);
             $router->get('localization', ['as' => 'localization', 'uses' => 'SettingsController@showLocalizationView']);
             $router->get('timezone', ['as' => 'timezone', 'uses' => 'SettingsController@showTimezoneView']);
             $router->get('theme', ['as' => 'theme', 'uses' => 'SettingsController@showThemeView']);
             $router->get('stylesheet', ['as' => 'stylesheet', 'uses' => 'SettingsController@showStylesheetView']);
             $router->post('/', 'SettingsController@postSettings');
         });
         // User Settings
         $router->group(['prefix' => 'user'], function ($router) {
             $router->get('/', ['as' => 'user', 'uses' => 'UserController@showUser']);
             $router->post('/', 'UserController@postUser');
             $router->get('{user}/api/regen', 'UserController@regenerateApiKey');
         });
         /*
          * Internal API.
          * This should only be used for making requests within the dashboard.
          */
         $router->group(['prefix' => 'api'], function ($router) {
             $router->post('projects/teams/order', 'ApiController@postUpdateProjectTeamOrder');
             $router->post('projects/order', 'ApiController@postUpdateProjectOrder');
             $router->post('projects/{project}', 'ApiController@postUpdateProject');
         });
     });
 }
开发者ID:emtudo,项目名称:Gitamin,代码行数:100,代码来源:DashboardRoutes.php

示例10: map

 /**
  * Define the dashboard routes.
  *
  * @param \Illuminate\Contracts\Routing\Registrar $router
  */
 public function map(Registrar $router)
 {
     //Dashboard area
     $router->group(['middleware' => 'auth', 'prefix' => 'dashboard', 'namespace' => 'Dashboard', 'as' => 'dashboard.'], function ($router) {
         // Projects
         $router->group(['as' => 'projects.', 'prefix' => 'projects'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'ProjectsController@indexAction']);
             $router->get('starred', ['as' => 'starred', 'uses' => 'ProjectsController@starredAction']);
         });
         //Groups
         $router->group(['as' => 'groups.', 'prefix' => 'groups'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'GroupsController@indexAction']);
         });
         // Moments
         $router->group(['as' => 'moments.', 'prefix' => 'moments'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'MomentsController@indexAction']);
         });
         // Milestones
         $router->group(['as' => 'milestones.', 'prefix' => 'milestones'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'MilestonesController@indexAction']);
         });
         // Pull Requests
         $router->group(['as' => 'pull_requests.', 'prefix' => 'pull_requests'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'PullRequestsController@indexAction']);
         });
         // Snippets
         $router->group(['as' => 'snippets.', 'prefix' => 'snippets'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'SnippetsController@indexAction']);
         });
         // Issues
         $router->group(['as' => 'issues.', 'prefix' => 'issues'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'IssuesController@indexAction']);
         });
         // Subscribers
         $router->group(['as' => 'subscribers.', 'prefix' => 'subscribers'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'SubscriberController@indexAction']);
             $router->get('add', ['as' => 'add', 'uses' => 'SubscriberController@showAddSubscriber']);
             $router->post('add', 'SubscriberController@createSubscriberAction');
             $router->delete('{subscriber}/delete', 'SubscriberController@deleteSubscriberAction');
         });
         // Group Members
         $router->group(['as' => 'group.', 'prefix' => 'group'], function ($router) {
             $router->get('/', ['as' => 'index', 'uses' => 'GroupController@showGroupView']);
             $router->group(['middleware' => 'admin'], function ($router) {
                 $router->get('add', ['as' => 'add', 'uses' => 'GroupController@showAddGroupMemberView']);
                 $router->get('invite', ['as' => 'invite', 'uses' => 'GroupController@showInviteGroupMemberView']);
                 $router->get('{user}', 'GroupController@showGroupMemberView');
                 $router->post('add', 'GroupController@postAddUser');
                 $router->post('invite', 'GroupController@postInviteUser');
                 $router->post('{user}', 'GroupController@postUpdateUser');
                 $router->delete('{user}/delete', 'GroupController@deleteUser');
             });
         });
         // User Settings
         $router->group(['prefix' => 'user'], function ($router) {
             $router->get('/', ['as' => 'user', 'uses' => 'UserController@showUser']);
             $router->post('/', 'UserController@postUser');
             $router->get('{user}/api/regen', 'UserController@regenerateApiKey');
         });
         /*
          * Internal API.
          * This should only be used for making requests within the dashboard.
          */
         $router->group(['prefix' => 'api'], function ($router) {
             $router->post('projects/order', 'ApiController@postUpdateProjectOrder');
             $router->post('projects/{project}', 'ApiController@postUpdateProject');
             //$router->post('upload/avatar', 'Phecho\\Uploader\\UploaderController@index');
         });
     });
 }
开发者ID:xiaobailc,项目名称:Gitamin,代码行数:75,代码来源:DashboardRoutes.php


注:本文中的Illuminate\Contracts\Routing\Registrar::delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。