Skip to content

Commit

Permalink
Fix conditional for /test route.
Browse files Browse the repository at this point in the history
  • Loading branch information
BusterNeece committed Nov 26, 2018
1 parent 7aadc4d commit 8d4236c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/routes.php
Expand Up @@ -252,11 +252,13 @@
->setName('api_keys:delete');

// Used for internal development
if (!APP_IN_PRODUCTION) {
/** @var \Azura\Settings $app_settings */
$app_settings = $this->getContainer()->get('settings');

if (!$app_settings->isProduction()) {
$this->any('/test', Controller\Frontend\UtilController::class.':testAction')
->setName('util:test');
}

})
->add(AzuraMiddleware\EnableView::class)
->add(Middleware\RequireLogin::class);
Expand Down

0 comments on commit 8d4236c

Please sign in to comment.