<?php
declare(strict_types=1);

return [
    ['GET',  '/subscriptions',                       'Subscriptions\Controllers\SubscriptionController@index',             ['auth'], 'subscription.view'],
    ['GET',  '/subscriptions/batch-generate',        'Subscriptions\Controllers\SubscriptionController@batchGenerateForm', ['auth'], 'subscription.generate_batch'],
    ['POST', '/subscriptions/batch-generate',        'Subscriptions\Controllers\SubscriptionController@batchGenerate',     ['auth', 'csrf'], 'subscription.generate_batch'],
    ['GET',  '/members/{memberId}/subscriptions',    'Subscriptions\Controllers\SubscriptionController@memberSubscriptions',['auth'], 'subscription.view'],
    ['POST', '/members/{memberId}/subscriptions/{year}/pay', 'Subscriptions\Controllers\SubscriptionController@payYear', ['auth', 'csrf'], 'subscription.collect'],
    ['POST', '/subscriptions/{id}/pay',              'Subscriptions\Controllers\SubscriptionController@pay',               ['auth', 'csrf'], 'subscription.collect'],
    ['POST', '/subscriptions/{id}/exempt',           'Subscriptions\Controllers\SubscriptionController@exempt',            ['auth', 'csrf'], 'subscription.exempt'],
];