mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 20:44:04 +00:00
35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?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::middleware('auth:api')->get('/user', function (Request $request) {
|
|
// return $request->user();
|
|
//});
|
|
|
|
//Route::post('register', 'AuthController@register');
|
|
Route::post('login', 'AuthController@login');
|
|
Route::post('password/recover', 'AuthController@recover');
|
|
Route::post('password/reset', 'AuthController@reset');
|
|
|
|
|
|
Route::post('send-verification', 'AuthController@sendVerification');
|
|
Route::post('verify-phone', 'AuthController@verifyPhone');
|
|
|
|
Route::group(['middleware' => ['jwt.auth']], function() {
|
|
Route::get('logout', 'AuthController@logout');
|
|
Route::patch('user', 'AuthController@updateUser');
|
|
Route::get('test', function(Request $request){
|
|
return response()->json(['user'=> $request->user()]);
|
|
});
|
|
}); |