Skip to content

Commit

Permalink
feat(home): add details about user limit
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Aug 11, 2024
1 parent 0df6a6a commit 7e5e18b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/Controllers/Home.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace App\Controllers;

use Config\App;

class Home extends BaseController
{
public function index()
Expand All @@ -11,7 +13,10 @@ public function index()
"data" => [
"csrf_token" => csrf_hash()
],
"meta" => $metadata
"meta" => array_merge($metadata, [
"userCountLimit" => (new App())->userCountLimit,
"environment" => $_ENV["CI_ENVIRONMENT"]
])
]);
}
}

0 comments on commit 7e5e18b

Please sign in to comment.