<commit_before><?php

$base = 'Lossendae\PreviouslyOn\Controllers\\';

Route::group(array('before' => 'xsrf', 'prefix' => 'api'), function () use($base)
{
    Route::get('remote/search', $base . 'Api\SearchController@get');
    Route::put('remote/{id}', $base . 'Api\AssignController@put');

    Route::get('manage/list', $base . 'TvShowController@getList');
    Route::get('manage/{id}', $base . 'TvShowController@manage');
    Route::delete('manage/{id}', $base . 'TvShowController@remove');

    Route::put('manage/{id}/{status}', $base . 'EpisodeController@update');
});

Route::group(array('before' => 'xsrf'), function () use($base)
{
    Route::get('auth/logout', $base . 'AuthController@logout');
});

Route::get('auth/token', function ()
{
    return array('_token' => csrf_token());
});

Route::get('auth/check', function ()
{
        return array('logged' => Auth::check());
});

Route::get('auth/session', function ()
{<commit_msg>Updated calls to API controller<commit_after><?php

$base = 'Lossendae\PreviouslyOn\Controllers\\';

Route::group(array('before' => 'xsrf', 'prefix' => 'api'), function () use($base)
{
    Route::get('remote/search', $base . 'ApiController@get');
    Route::put('remote/{id}', $base . 'ApiController@put');

    Route::get('manage/list', $base . 'TvShowController@getList');
    Route::get('manage/{id}', $base . 'TvShowController@manage');
    Route::delete('manage/{id}', $base . 'TvShowController@remove');

    Route::put('manage/{id}/{status}', $base . 'EpisodeController@update');
});

Route::group(array('before' => 'xsrf'), function () use($base)
{
    Route::get('auth/logout', $base . 'AuthController@logout');
});

Route::get('auth/token', function ()
{
    return array('_token' => csrf_token());
});

Route::get('auth/check', function ()
{
        return array('logged' => Auth::check());
});

Route::get('auth/session', function ()
{
{'fraction_non_alphanumeric': 0.24232804232804234, 'fraction_numerical': 0.0, 'mean_word_length': 5.498281786941581, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3547634', 'n_tokens_mistral': 631, 'n_tokens_neox': 626, 'n_words': 96}