<?php

ModuleRoute::context('Tournaments');

ModuleRoute::group(['as' => ModuleRoute::getAdminNamePrefix()], function () {
    ModuleRoute::resource('admin/tournaments', 'AdminTournamentsController');
    ModuleRoute::get(
        'admin/tournaments/{id}/restore',
        ['as' => 'tournaments.restore', 'uses' => 'AdminTournamentsController@restore']
    );
    ModuleRoute::post('admin/tournaments/search', 'AdminTournamentsController@search');
});
