Skip to content

Commit 5d146a2

Browse files
author
Andrey Helldar
committed
The kernel is moved to a separate project
1 parent f8c2971 commit 5d146a2

File tree

6 files changed

+9
-338
lines changed

6 files changed

+9
-338
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"require": {
2222
"php": "^7.2",
2323
"ext-json": "*",
24+
"andrey-helldar/laravel-routes-core": "^1.0",
2425
"andrey-helldar/support": "^1.22",
25-
"doctrine/annotations": "^1.0",
2626
"illuminate/contracts": "^5.0|^6.0|^7.0|^8.0",
2727
"illuminate/http": "^5.0|^6.0|^7.0|^8.0",
2828
"illuminate/routing": "^5.0|^6.0|^7.0|^8.0",

src/Facades/Annotation.php

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

src/Http/PrettyRoutesController.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace PrettyRoutes\Http;
44

5+
use Helldar\LaravelRoutesCore\Support\Routes;
56
use Illuminate\Routing\Controller as BaseController;
6-
use PrettyRoutes\Support\Routes;
77

88
class PrettyRoutesController extends BaseController
99
{
@@ -20,14 +20,17 @@ public function show()
2020
/**
2121
* Getting a list of routes.
2222
*
23-
* @param \PrettyRoutes\Support\Routes $routes
23+
* @param \Helldar\LaravelRoutesCore\Support\Routes $routes
2424
*
2525
* @return \Illuminate\Http\JsonResponse
2626
*/
2727
public function routes(Routes $routes)
2828
{
29-
return response()->json(
30-
$routes->get()
31-
);
29+
$content = $routes
30+
->hideMethods(config('pretty-routes.hide_methods', []))
31+
->hideMatching(config('pretty-routes.hide_matching', []))
32+
->get();
33+
34+
return response()->json($content);
3235
}
3336
}

src/Models/Route.php

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

src/Support/Annotation.php

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

src/Support/Routes.php

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

0 commit comments

Comments
 (0)