<commit_before><?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('pages.home');
})->middleware('guest');

Route::group(['middleware' => 'web'], function () {
    // Authentication
    Route::get('login', 'Auth\AuthController@getLogin');
    Route::get('logout', 'Auth\AuthController@getLogout');

    // Campaigns
    Route::get('campaigns', 'CampaignsController@index');
    Route::get('campaigns/{id}/inbox', 'CampaignsController@showInbox');
    Route::get('campaigns/{id}', 'CampaignsController@showCampaign');

    // Posts
    Route::post('posts', 'PostController@store');
    Route::get('posts', 'PostController@index');
    Route::delete('posts/{id}', 'PostController@destroy');

    // Reviews
    Route::put('reviews', 'ReviewsController@reviews');

    // Tags
    Route::post('tags', 'TagsController@store');

<<<<<<< HEAD
    // Images
    Route::get('/images/{post}', 'ImagesController@show');

    // Users
    Route::get('users', ['as' => 'users.index', 'uses' => 'UsersController@index']);
    Route::get('users/{id}', ['as' => 'users.show', 'uses' => 'UsersController@show']);
=======
    // users
    Route::get('users', 'UsersController@index');
>>>>>>> Add search bar to users page
    Route::get('search', ['as' => 'users.search', 'uses' => 'UsersController@search']);
});

// Legacy API Routes
Route::group(['prefix' => 'api/v1', 'middleware' => ['auth.api', 'log.received.request']], function () {
    Route::get('/', function () {
        return 'Rogue API version 1';
    });

    // items
    Route::put('items', 'Api\ReportbackController@updateReportbackItems');

    // reportbacks
    Route::get('reportbacks', 'Api\ReportbackController@index');
    Route::post('reportbacks', 'Api\ReportbackController@store');
});

// v2 routes
Route::group(['prefix' => 'api/v2', 'middleware' => ['auth.api', 'log.received.request']], function () {

    // activity
    Route::get('activity', 'Api\ActivityController@index');

    // posts
    Route::post('posts', 'Api\PostsController@store');<commit_msg>Search for user in northstar<commit_after><?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('pages.home');
})->middleware('guest');

Route::group(['middleware' => 'web'], function () {
    // Authentication
    Route::get('login', 'Auth\AuthController@getLogin');
    Route::get('logout', 'Auth\AuthController@getLogout');

    // Campaigns
    Route::get('campaigns', 'CampaignsController@index');
    Route::get('campaigns/{id}/inbox', 'CampaignsController@showInbox');
    Route::get('campaigns/{id}', 'CampaignsController@showCampaign');

    // Posts
    Route::post('posts', 'PostController@store');
    Route::get('posts', 'PostController@index');
    Route::delete('posts/{id}', 'PostController@destroy');

    // Reviews
    Route::put('reviews', 'ReviewsController@reviews');

    // Tags
    Route::post('tags', 'TagsController@store');

    // Images
    Route::get('/images/{post}', 'ImagesController@show');

    // Users
    Route::get('users', ['as' => 'users.index', 'uses' => 'UsersController@index']);
    Route::get('users/{id}', ['as' => 'users.show', 'uses' => 'UsersController@show']);
    Route::get('search', ['as' => 'users.search', 'uses' => 'UsersController@search']);
});

// Legacy API Routes
Route::group(['prefix' => 'api/v1', 'middleware' => ['auth.api', 'log.received.request']], function () {
    Route::get('/', function () {
        return 'Rogue API version 1';
    });

    // items
    Route::put('items', 'Api\ReportbackController@updateReportbackItems');

    // reportbacks
    Route::get('reportbacks', 'Api\ReportbackController@index');
    Route::post('reportbacks', 'Api\ReportbackController@store');
});

// v2 routes
Route::group(['prefix' => 'api/v2', 'middleware' => ['auth.api', 'log.received.request']], function () {

    // activity
    Route::get('activity', 'Api\ActivityController@index');

    // posts
    Route::post('posts', 'Api\PostsController@store');
{'fraction_non_alphanumeric': 0.2590080542602798, 'fraction_numerical': 0.001695633743111488, 'mean_word_length': 3.2628726287262872, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 34, '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': '1634627', 'n_tokens_mistral': 1365, 'n_tokens_neox': 1327, 'n_words': 273}