Created
March 14, 2019 14:36
-
-
Save earth774/333a01ee58443015b2d76cbe541dddde to your computer and use it in GitHub Desktop.
route for forgot password and reset password
This file contains hidden or 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 | |
/* | |
|-------------------------------------------------------------------------- | |
| Application Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register all of the routes for an application. | |
| It is a breeze. Simply tell Lumen the URIs it should respond to | |
| and give it the Closure to call when that URI is requested. | |
| | |
*/ | |
$router->get('/', function () use ($router) { | |
return $router->app->version(); | |
}); | |
$router->group(['prefix' => 'api/v1'], function ($router) { | |
// Users | |
$router->post('user/register', 'UserController@register'); | |
$router->post('user/login', ['uses' => 'UserController@login']); | |
$router->post('user/forgot_password', 'UserController@ForgotPassword'); | |
}); | |
$router->get('/user/reset_password/{rpk}', 'UserController@resetPassword'); | |
$router->group(['prefix' => 'api/v1', 'middleware' => 'jwt.auth'], function ($router) { | |
$router->get('test', 'UserController@MakeData'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you tell me how to use this?