<?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'],

    // Enrollment Wizard
    ['GET',  '/activity-subscriptions/enroll',               'ActivitySubscriptions\Controllers\EnrollWizardController@index',            ['auth'], 'activity_sub.view'],
    ['GET',  '/activity-subscriptions/enroll/levels',        'ActivitySubscriptions\Controllers\EnrollWizardController@getLevels',        ['auth'], 'activity_sub.view'],
    ['GET',  '/activity-subscriptions/enroll/price',         'ActivitySubscriptions\Controllers\EnrollWizardController@getPrice',         ['auth'], 'activity_sub.view'],
    ['GET',  '/activity-subscriptions/enroll/availability',  'ActivitySubscriptions\Controllers\EnrollWizardController@getAvailability',  ['auth'], 'activity_sub.view'],
    ['POST', '/activity-subscriptions/enroll',               'ActivitySubscriptions\Controllers\EnrollWizardController@enroll',           ['auth', 'csrf'], 'academy.enroll'],

    // Player Search API (used by wizard)
    ['GET',  '/api/players/search',                          'ActivitySubscriptions\Controllers\PlayerSearchController@search',           ['auth'], 'player.view'],
];
