Browse Source

add route api

jauhar54 2 years ago
parent
commit
e28ccfd896
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      routes/api_v1.php

+ 2
- 0
routes/api_v1.php View File

74
         Route::get('/all', ['as' => 'index', 'uses' => 'TransportationController@getAll']);
74
         Route::get('/all', ['as' => 'index', 'uses' => 'TransportationController@getAll']);
75
         Route::get('/find-by-user/{data_id?}', ['as' => 'find_by_user', 'uses' => 'TransportationController@getByUser']);
75
         Route::get('/find-by-user/{data_id?}', ['as' => 'find_by_user', 'uses' => 'TransportationController@getByUser']);
76
         Route::post('/store', ['as' => 'store', 'uses' => 'TransportationController@postStore']);
76
         Route::post('/store', ['as' => 'store', 'uses' => 'TransportationController@postStore']);
77
+        Route::post('/update', ['as' => 'store', 'uses' => 'TransportationController@postUpdate']);
78
+        Route::post('/delete', ['as' => 'store', 'uses' => 'TransportationController@delete']);
77
     }
79
     }
78
 );
80
 );
79
 // End Transportation
81
 // End Transportation

Loading…
Cancel
Save