forked from rluders/wn-jwtauth-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.php
53 lines (42 loc) · 1.16 KB
/
routes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
Route::group(
[
'prefix' => 'api/auth',
'namespace' => 'RLuders\JWTAuth\Http\Controllers',
'middleware' => ['api'],
],
function () {
Route::post(
'login',
'LoginController'
)->name('api.auth.login');
Route::post(
'register',
'RegisterController'
)->name('api.auth.register');
Route::post(
'account-activation',
'ActivateController'
)->name('api.auth.account-activation');
Route::post(
'forgot-password',
'ForgotPasswordController'
)->name('api.auth.forgot-password');
Route::post(
'reset-password',
'ResetPasswordController'
)->name('api.auth.reset-password');
Route::post(
'refresh-token',
'RefreshTokenController'
)->name('api.auth.refresh-token');
Route::middleware(['jwt.auth'])->group(
function () {
Route::get(
'me',
'GetUserController'
)->name('api.auth.me');
}
);
}
);