fixed api token
This commit is contained in:
@ -10,20 +10,6 @@ class Home extends Controller
|
||||
{
|
||||
use Modules;
|
||||
|
||||
/**
|
||||
* Instantiate a new controller instance.
|
||||
*
|
||||
* @param Route $route
|
||||
*/
|
||||
public function __construct(Route $route)
|
||||
{
|
||||
if (!setting('general.api_token')) {
|
||||
return redirect('apps/token/create')->send();
|
||||
}
|
||||
|
||||
parent::__construct($route);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
@ -31,6 +17,8 @@ class Home extends Controller
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$this->checkApiToken();
|
||||
|
||||
$paid = $this->getPaidModules();
|
||||
$new = $this->getNewModules();
|
||||
$free = $this->getFreeModules();
|
||||
|
Reference in New Issue
Block a user