<?php
declare(strict_types=1);

return [
    // Mirror Grid System
    ['GET',  '/mirror',                                          'FacilityDashboards\Controllers\MirrorDisplayController@index',         ['auth'], 'facility.mirror'],
    ['POST', '/mirror/create',                                   'FacilityDashboards\Controllers\MirrorDisplayController@createGrid',    ['auth', 'csrf'], 'facility.mirror'],
    ['GET',  '/mirror/{id:\d+}',                                 'FacilityDashboards\Controllers\MirrorDisplayController@show',          ['auth'], 'facility.mirror'],
    ['POST', '/mirror/{gridId:\d+}/box/{boxId:\d+}',             'FacilityDashboards\Controllers\MirrorDisplayController@updateBox',     ['auth', 'csrf'], 'facility.mirror'],
    ['POST', '/mirror/{gridId:\d+}/box/{boxId:\d+}/trainee',     'FacilityDashboards\Controllers\MirrorDisplayController@addTrainee',    ['auth', 'csrf'], 'facility.mirror'],
    ['POST', '/mirror/{gridId:\d+}/trainee/{traineeId:\d+}/remove', 'FacilityDashboards\Controllers\MirrorDisplayController@removeTrainee', ['auth', 'csrf'], 'facility.mirror'],
    ['POST', '/mirror/{gridId:\d+}/trainee/{traineeId:\d+}/move',   'FacilityDashboards\Controllers\MirrorDisplayController@moveTrainee',   ['auth', 'csrf'], 'facility.mirror'],
    ['POST', '/mirror/{id:\d+}/delete',                          'FacilityDashboards\Controllers\MirrorDisplayController@deleteGrid',    ['auth', 'csrf'], 'facility.mirror'],
    ['GET',  '/api/mirror/{id:\d+}/state',                       'FacilityDashboards\Controllers\MirrorDisplayController@apiState',      ['auth'], 'facility.mirror'],

    // Facility Dashboard
    ['GET',  '/facilities/{id:\d+}/dashboard',                   'FacilityDashboards\Controllers\FacilityDashboardController@show',      ['auth'], 'facility.dashboard'],
];
