<?php
declare(strict_types=1);

return [
    ['GET',  '/activity-subscriptions',                  'ActivitySubscriptions\Controllers\ActivitySubscriptionController@index',          ['auth'], 'activity_sub.view'],
    ['GET',  '/activity-subscriptions/pricing',          'ActivitySubscriptions\Controllers\ActivitySubscriptionController@pricing',        ['auth'], 'activity_sub.manage_pricing'],
    ['POST', '/activity-subscriptions/pricing',          'ActivitySubscriptions\Controllers\ActivitySubscriptionController@updatePricing',  ['auth', 'csrf'], 'activity_sub.manage_pricing'],
    ['POST', '/activity-subscriptions/generate',         'ActivitySubscriptions\Controllers\ActivitySubscriptionController@generate',       ['auth', 'csrf'], 'activity_sub.generate'],
    ['GET',  '/activity-subscriptions/{id:\d+}',         'ActivitySubscriptions\Controllers\ActivitySubscriptionController@show',           ['auth'], 'activity_sub.view'],
    ['POST', '/activity-subscriptions/{id:\d+}/pay',     'ActivitySubscriptions\Controllers\ActivitySubscriptionController@pay',            ['auth', 'csrf'], 'activity_sub.collect'],
    ['POST', '/activity-subscriptions/{id:\d+}/exempt',  'ActivitySubscriptions\Controllers\ActivitySubscriptionController@exempt',         ['auth', 'csrf'], 'activity_sub.exempt'],
];
