<?php
declare(strict_types=1);

return [
    ['GET',  '/news',                       'News\Controllers\NewsController@index',         ['auth'], 'news.view'],
    ['GET',  '/news/create',                'News\Controllers\NewsController@create',        ['auth'], 'news.manage'],
    ['POST', '/news',                       'News\Controllers\NewsController@store',         ['auth', 'csrf'], 'news.manage'],
    ['GET',  '/news/{id:\d+}',              'News\Controllers\NewsController@show',          ['auth'], 'news.view'],
    ['GET',  '/news/{id:\d+}/edit',         'News\Controllers\NewsController@edit',          ['auth'], 'news.manage'],
    ['POST', '/news/{id:\d+}',              'News\Controllers\NewsController@update',        ['auth', 'csrf'], 'news.manage'],
    ['POST', '/news/{id:\d+}/toggle-publish','News\Controllers\NewsController@togglePublish',['auth', 'csrf'], 'news.manage'],
];
