Last active
April 15, 2020 02:17
-
-
Save Cerwyn/55815de92c61ce5e6b2c8cf44098ecec to your computer and use it in GitHub Desktop.
One-to-one
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Http\Request; | |
/* | |
|-------------------------------------------------------------------------- | |
| API Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register API routes for your application. These | |
| routes are loaded by the RouteServiceProvider within a group which | |
| is assigned the "api" middleware group. Enjoy building your API! | |
| | |
*/ | |
Route::post('register', 'UserController@register'); | |
Route::post('login', 'UserController@login'); | |
Route::get('user/{user}/address', 'UserController@show_address'); | |
Route::get('user/{user}', 'UserController@show'); | |
Route::post('address','AddressController@store'); | |
Route::get('address/{address}','AddressController@show'); | |
Route::get('address/{address}/user','AddressController@show_user'); | |
Route::put('address/{address}','AddressController@update'); | |
Route::delete('address/{address}','AddressController@destroy'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment