Reorganization
This commit is contained in:
parent
ea58586f01
commit
5bca3ecb49
150 changed files with 2399 additions and 25 deletions
0
site_proximo/.gitignore → .gitignore
vendored
0
site_proximo/.gitignore → .gitignore
vendored
|
@ -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.
|
||||
*
|
|
@ -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');
|
||||
|
File diff suppressed because it is too large
Load diff
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
Loading…
Reference in a new issue