initial commit

This commit is contained in:
Bubka
2019-05-20 07:37:41 +02:00
commit c9150c47fd
94 changed files with 14635 additions and 0 deletions

25
routes/api.php Normal file
View File

@ -0,0 +1,25 @@
<?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('login', 'UserController@login');
Route::post('register', 'UserController@register');
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});
Route::group(['middleware' => 'auth:api'], function(){
Route::resource('/account', 'AccountController');
});