Reorganization

This commit is contained in:
Baptiste Marty 2020-11-29 11:46:41 +01:00
parent ea58586f01
commit 5bca3ecb49
150 changed files with 2399 additions and 25 deletions

View file

@ -31,6 +31,13 @@ class ArticleController extends Controller
return response()->json($articles);
}
public function index(Request $request)
{
$articles = Article::all();
return response()->json($articles);
}
/**
* Show the form for creating a new resource.
*

View file

@ -17,6 +17,8 @@ use Illuminate\Support\Facades\Route;
*/
// Article
Route::get('/articles','App\Http\Controllers\ArticleController@index');
Route::post('/articles','App\Http\Controllers\ArticleController@search');
Route::post('/articles/sort','App\Http\Controllers\ArticleController@getArticles');

View file

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Some files were not shown because too many files have changed in this diff Show more