Skip to content

Commit 51b74af

Browse files
authored
Merge pull request #14 from nextdeveloper-nl/dev
Leo routes added
2 parents 0b9074d + 37f3fbb commit 51b74af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SupportServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ protected function bootEvents()
115115
*/
116116
protected function registerRoutes()
117117
{
118-
if (! $this->app->routesAreCached()) {
118+
if ( ! $this->app->routesAreCached() && config('leo.allowed_routes.support', true) ) {
119119
$this->app['router']
120120
->namespace('NextDeveloper\Support\Http\Controllers')
121121
->group(__DIR__.DIRECTORY_SEPARATOR.'Http'.DIRECTORY_SEPARATOR.'api.routes.php');

0 commit comments

Comments
 (0)