[ [ 'dest' => '\Modules\Comments\Controller\ApiController:apiCommentCreate', 'verb' => RouteVerb::PUT, 'csrf' => true, 'active' => true, 'permission' => [ 'module' => ApiController::NAME, 'type' => PermissionType::CREATE, 'state' => PermissionCategory::COMMENT, ], ], [ 'dest' => '\Modules\Comments\Controller\ApiController:apiCommentUpdate', 'verb' => RouteVerb::SET, 'csrf' => true, 'active' => true, 'permission' => [ 'module' => ApiController::NAME, 'type' => PermissionType::CREATE, 'state' => PermissionCategory::COMMENT, ], ], ], '^.*/comment/list(\?.*|$)' => [ [ 'dest' => '\Modules\Comments\Controller\ApiController:apiCommentListUpdate', 'verb' => RouteVerb::SET, 'csrf' => true, 'active' => true, 'permission' => [ 'module' => ApiController::NAME, 'type' => PermissionType::CREATE, 'state' => PermissionCategory::LIST, ], ], ], '^.*/comment/vote(\?.*|$)' => [ [ 'dest' => '\Modules\Comments\Controller\ApiController:apiChangeCommentVote', 'verb' => RouteVerb::PUT | RouteVerb::SET, 'csrf' => true, 'active' => true, 'permission' => [ 'module' => ApiController::NAME, 'type' => PermissionType::CREATE, 'state' => PermissionCategory::VOTE, ], ], ], ];