<commit_before><?php

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::group(['namespace' => 'Api'], function () {
    Route::post('auth', 'AuthController@auth');

    Route::get('observations', 'ObservationController@index');
    Route::get('observations/{id}', 'ObservationController@show');
    Route::get('observations/{id}/picture', 'ObservationController@getPicture');

    Route::post('observations', 'ObservationController@store');

    // Authenticated url's
    Route::group(['middleware' => 'jwt.auth'], function () {
        Route::post('auth/me', 'AuthController@me');
        Route::post('auth/refresh', 'AuthController@refresh');

        Route::post('votes', 'VotesController@store');
    });
});<commit_msg>middleware is automatically 'api' in api.php file<commit_after><?php

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::group(['namespace' => 'Api'], function () {
    Route::post('auth', 'AuthController@auth');

    Route::get('observations', 'ObservationController@index');
    Route::get('observations/{id}', 'ObservationController@show');
    Route::get('observations/{id}/picture', 'ObservationController@getPicture');


    Route::post('observations', 'ObservationController@store');

    // Authenticated url's
    Route::group(['middleware' => 'jwt.auth'], function () {
        Route::post('auth/me', 'AuthController@me');
        Route::post('auth/refresh', 'AuthController@refresh');

        Route::post('votes', 'VotesController@store');
    });
});
{'fraction_non_alphanumeric': 0.28446288612263715, 'fraction_numerical': 0.0, 'mean_word_length': 2.5749588138385504, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '762324', 'n_tokens_mistral': 535, 'n_tokens_neox': 521, 'n_words': 124}