<commit_before><?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return \Illuminate\Support\Facades\Redirect::route('tournament.index');
});

Route::post('tournament/{tournament}/activate', [
    'as' => 'tournament.activate',
    'uses' => 'TournamentController@activate'
]);

Route::post('tournament/{tournament}/match/{match}/start', [
    'as' => 'tournament.match.start',
    'uses' => 'MatchController@start'
]);

Route::post('tournament/{tournament}/match/{match}/end', [
    'as' => 'tournament.match.end',
    'uses' => 'MatchController@end'
]);

Route::post('tournament/{tournament}/match/{match}/goal/add', [
    'as' => 'tournament.match.goal.store',
    'uses' => 'MatchController@addGoal'
]);

Auth::routes();

Route::group(['middleware' => 'auth'], function() {
    Route::resource('tournament', 'TournamentController');
    Route::resource('player', 'PlayerController');
});<commit_msg>Criação da rota para serviço de obtenção de dados do torneio<commit_after><?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return \Illuminate\Support\Facades\Redirect::route('tournament.index');
});

Route::post('tournament/{tournament}/activate', [
    'as' => 'tournament.activate',
    'uses' => 'TournamentController@activate'
]);

Route::post('tournament/{tournament}/match/{match}/start', [
    'as' => 'tournament.match.start',
    'uses' => 'MatchController@start'
]);

Route::post('tournament/{tournament}/match/{match}/end', [
    'as' => 'tournament.match.end',
    'uses' => 'MatchController@end'
]);

Route::post('tournament/{tournament}/match/{match}/goal/add', [
    'as' => 'tournament.match.goal.store',
    'uses' => 'MatchController@addGoal'
]);

Route::post('tournament/{tournament}/fetch', [
    'as' => 'tournament.fetch',
    'uses' => 'TournamentController@fetch'
]);

Auth::routes();

Route::group(['middleware' => 'auth'], function() {
    Route::resource('tournament', 'TournamentController');
    Route::resource('player', 'PlayerController');
});
{'fraction_non_alphanumeric': 0.28262463343108507, 'fraction_numerical': 0.0, 'mean_word_length': 2.94364161849711, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3571794', 'n_tokens_mistral': 792, 'n_tokens_neox': 756, 'n_words': 147}