Skip to content

Commit

Permalink
Added /admin route redirect to /dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Jun 27, 2016
1 parent 8f68b2a commit 86cfcb5
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 185 deletions.
11 changes: 11 additions & 0 deletions app/Http/Controllers/Dashboard/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use CachetHQ\Cachet\Models\Subscriber;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\View;
use Jenssegers\Date\Date;

Expand Down Expand Up @@ -58,6 +59,16 @@ public function __construct(Feed $feed)
$this->dateTimeZone = Config::get('cachet.timezone');
}

/**
* Redirect /admin to /dashboard
*
* @return \Illuminate\Http\RedirectResponse
*/
public function redirectAdmin()
{
return Redirect::route('dashboard.index');
}

/**
* Shows the dashboard view.
*
Expand Down
Loading

0 comments on commit 86cfcb5

Please sign in to comment.