Skip to content

Commit f24347d

Browse files
committed
Remove old admin routes, fix display to non-admins
Complete!
1 parent b1a9a59 commit f24347d

File tree

6 files changed

+155
-605
lines changed

6 files changed

+155
-605
lines changed

app/Http/Controllers/Admin/APIController.php

Lines changed: 0 additions & 100 deletions
This file was deleted.

app/Http/Routes/AdminRoutes.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -303,32 +303,6 @@ public function map(Router $router) {
303303
]);
304304
});
305305

306-
// API Routes
307-
$router->group([
308-
'prefix' => 'admin/api',
309-
'middleware' => [
310-
'auth',
311-
'admin',
312-
'csrf'
313-
]
314-
], function () use ($router) {
315-
$router->get('/', [
316-
'as' => 'admin.api',
317-
'uses' => 'Admin\APIController@getIndex'
318-
]);
319-
$router->get('/new', [
320-
'as' => 'admin.api.new',
321-
'uses' => 'Admin\APIController@getNew'
322-
]);
323-
$router->post('/new', [
324-
'uses' => 'Admin\APIController@postNew'
325-
]);
326-
$router->delete('/revoke/{key?}', [
327-
'as' => 'admin.api.revoke',
328-
'uses' => 'Admin\APIController@deleteRevokeKey'
329-
]);
330-
});
331-
332306
// Database Routes
333307
$router->group([
334308
'prefix' => 'admin/databases',

resources/views/admin/api/index.blade.php

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)