<commit_before><?php

Route::get('/oauth/etuutt/link', ['uses' => 'Api\OAuthController@getRedirectLink']);
Route::post('/oauth/etuutt/callback', ['uses' => 'Api\OAuthController@mobileCallback']);


Route::get('/student/autocomplete', ['uses' => 'Api\StudentsController@autocomplete']);

Route::get('/gubu/{payload}.pdf', ['uses' => 'Api\GubuController@download', 'as'   => 'api.gubu.pdf']);

Route::group(['middleware' => 'auth:api'], function () {

    Route::post('/oauth/token/revoke', ['uses' => 'Api\OAuthController@revokeApiToken']);
    Route::post('/oauth/token/check', ['uses' => 'Api\OAuthController@checkApiToken']);

    Route::get('/student/{id}', ['uses' => 'Api\StudentsController@show']);
    Route::get('/student', ['uses' => 'Api\StudentsController@index']);
    // Route::put('/student/{id}', ['uses' => 'Api\StudentsController@update']);

    Route::get('/team/{id}', ['uses' => 'Api\TeamsController@show']);
    Route::get('/team', ['uses' => 'Api\TeamsController@index']);

    Route::get('/checkin/{id}', ['uses' => 'Api\CheckinController@show']);
    Route::get('/checkin', ['uses' => 'Api\CheckinController@index']);
    Route::post('/checkin', ['uses' => 'Api\CheckinController@store']);
    Route::put('/checkin/{id}/student', ['uses' => 'Api\CheckinController@addUser']);

    Route::post('/notification', ['uses' => 'Api\NotificationController@send']);
    Route::post('/user/push-token', ['uses' => 'Api\NotificationController@store']);

    Route::get('/event', ['uses' => 'Admin\EventController@index']);
    Route::get('/event/{id}', ['uses' => 'Api\EventController@show']);

    Route::post('/rallye/{id}', ['uses' => 'Api\RallyeController@store']);

    Route::get('/points', ['uses' => 'Api\PointController@show']);
    Route::get('/factions', ['uses' => 'Api\FactionController@show']);

    Route::get('/perms', ['uses' => 'Api\PermController@show']);
    Route::get('/adminperms', ['uses' => 'Api\PermController@adminshow']);
    Route::post('/perms/{id}/join', ['uses' => 'Api\PermController@join']);
    Route::post('/perms/{id}/leave', ['uses' => 'Api\PermController@leave']);
    Route::get('/user/perms', ['uses' => 'Api\PermController@index']);<commit_msg>Move end point into group auth:api.<commit_after><?php

Route::get('/oauth/etuutt/link', ['uses' => 'Api\OAuthController@getRedirectLink']);
Route::post('/oauth/etuutt/callback', ['uses' => 'Api\OAuthController@mobileCallback']);



Route::get('/gubu/{payload}.pdf', ['uses' => 'Api\GubuController@download', 'as'   => 'api.gubu.pdf']);

Route::group(['middleware' => 'auth:api'], function () {

    Route::post('/oauth/token/revoke', ['uses' => 'Api\OAuthController@revokeApiToken']);
    Route::post('/oauth/token/check', ['uses' => 'Api\OAuthController@checkApiToken']);

    Route::get('/student/{id}', ['uses' => 'Api\StudentsController@show']);
    Route::get('/student', ['uses' => 'Api\StudentsController@index']);
    // Route::put('/student/{id}', ['uses' => 'Api\StudentsController@update']);
    Route::get('/student/autocomplete', ['uses' => 'Api\StudentsController@autocomplete']);

    Route::get('/team/{id}', ['uses' => 'Api\TeamsController@show']);
    Route::get('/team', ['uses' => 'Api\TeamsController@index']);

    Route::get('/checkin/{id}', ['uses' => 'Api\CheckinController@show']);
    Route::get('/checkin', ['uses' => 'Api\CheckinController@index']);
    Route::post('/checkin', ['uses' => 'Api\CheckinController@store']);
    Route::put('/checkin/{id}/student', ['uses' => 'Api\CheckinController@addUser']);

    Route::post('/notification', ['uses' => 'Api\NotificationController@send']);
    Route::post('/user/push-token', ['uses' => 'Api\NotificationController@store']);

    Route::get('/event', ['uses' => 'Admin\EventController@index']);
    Route::get('/event/{id}', ['uses' => 'Api\EventController@show']);

    Route::post('/rallye/{id}', ['uses' => 'Api\RallyeController@store']);

    Route::get('/points', ['uses' => 'Api\PointController@show']);
    Route::get('/factions', ['uses' => 'Api\FactionController@show']);

    Route::get('/perms', ['uses' => 'Api\PermController@show']);
    Route::get('/adminperms', ['uses' => 'Api\PermController@adminshow']);
    Route::post('/perms/{id}/join', ['uses' => 'Api\PermController@join']);
    Route::post('/perms/{id}/leave', ['uses' => 'Api\PermController@leave']);
    Route::get('/user/perms', ['uses' => 'Api\PermController@index']);
{'fraction_non_alphanumeric': 0.2675101671938545, 'fraction_numerical': 0.0, 'mean_word_length': 6.015847860538828, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 61, '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': '5773190', 'n_tokens_mistral': 1409, 'n_tokens_neox': 1391, 'n_words': 178}