Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- |--------------------------------------------------------------------------
- | Web Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register web routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | contains the "web" middleware group. Now create something great!
- |
- */
- Route::get('/home/{vue_capture?}', function () {
- return view('welcome');
- })->where('vue_capture', '[\/\w\.-]*');
- Route::group(['middleware' => 'cors'], function () {
- Route::GET('/items','ItemController@index');
- Route::POST('/items','ItemController@store');
- Route::DELETE('/items/{id}','ItemController@destroy');
- Route::PATCH('/items/{id}','ItemController@update');
- Route::GET('/items/{id}/edit','ItemController@edit');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement