v0.10.5 - Added middelware

This commit is contained in:
Neerholt 2020-08-18 12:33:04 +02:00
parent 088fcd7f39
commit d851354086
2 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,15 @@ use Illuminate\Http\Response;
class AboutController extends Controller
{
public function __construct()
{
$this->middleware(["auth"]);
$this->middleware(["lang"]);
}
public function index(Request $request)
{
return Response::detect("about.index");

View File

@ -15,6 +15,7 @@ class NewsController extends Controller
public function __construct()
{
$this->middleware([ "auth" ]);
$this->middleware(["lang"]);
$this->middleware([ "check.auth:news.list" ])->only("index");
$this->middleware([ "check.auth:news.show" ])->only("show");