Remove old admin routes, fix display to non-admins

Complete!
This commit is contained in:
Dane Everitt 2016-10-20 18:40:16 -04:00
parent b1a9a59707
commit f24347d1bd
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 161 additions and 611 deletions

View file

@ -303,32 +303,6 @@ class AdminRoutes {
]);
});
// API Routes
$router->group([
'prefix' => 'admin/api',
'middleware' => [
'auth',
'admin',
'csrf'
]
], function () use ($router) {
$router->get('/', [
'as' => 'admin.api',
'uses' => 'Admin\APIController@getIndex'
]);
$router->get('/new', [
'as' => 'admin.api.new',
'uses' => 'Admin\APIController@getNew'
]);
$router->post('/new', [
'uses' => 'Admin\APIController@postNew'
]);
$router->delete('/revoke/{key?}', [
'as' => 'admin.api.revoke',
'uses' => 'Admin\APIController@deleteRevokeKey'
]);
});
// Database Routes
$router->group([
'prefix' => 'admin/databases',