forked from alfred-nutile-inc/laravel-feature-flag
-
Notifications
You must be signed in to change notification settings - Fork 7
/
routes.php
56 lines (55 loc) · 1.7 KB
/
routes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* @codeCoverageIgnore
*/
Route::group(['middleware' => config('laravel-feature-flag.route_middleware')], function () {
Route::get(
'admin/feature_flags',
[
'uses' => '\FriendsOfCat\LaravelFeatureFlags\FeatureFlagSettingsController@getSettings',
'as' => 'laravel-feature-flag.index'
]
);
Route::get(
'admin/feature_flags/{feature}/edit',
[
'uses' => '\FriendsOfCat\LaravelFeatureFlags\FeatureFlagSettingsController@edit',
'as' => 'laravel-feature-flag.edit_form'
]
);
Route::get(
'admin/feature_flags/create',
[
'uses' => '\FriendsOfCat\LaravelFeatureFlags\FeatureFlagSettingsController@create',
'as' => 'laravel-feature-flag.create_form'
]
);
Route::post(
'admin/feature_flags/imports',
[
'uses' => '\FriendsOfCat\LaravelFeatureFlags\FeatureFlagSettingsController@import',
'as' => 'laravel-feature-flag.imports'
]
);
Route::post(
'admin/feature_flags',
[
'uses' => '\FriendsOfCat\LaravelFeatureFlags\FeatureFlagSettingsController@store',
'as' => 'laravel-feature-flag.store'
]
);
Route::put(
'admin/feature_flags/{feature}',
[
'uses' => '\FriendsOfCat\LaravelFeatureFlags\FeatureFlagSettingsController@update',
'as' => 'laravel-feature-flag.update'
]
);
Route::delete(
'admin/feature_flags/{feature}',
[
'uses' => '\FriendsOfCat\LaravelFeatureFlags\FeatureFlagSettingsController@destroy',
'as' => 'laravel-feature-flag.delete'
]
);
});