group(function () { Route::get('keys/cookie/public/', 'PublicKeyController@setUsersKeyByCookie'); Route::get('keys/public/{user_id}', 'PublicKeyController@getUsersKey'); Route::post('keys/public', 'PublicKeyController@setUsersKey'); });