@@ 93-110 (lines=18) @@ | ||
90 | 'as' => 'flare::', |
|
91 | 'middleware' => ['web', 'flarebase'], |
|
92 | ], |
|
93 | function ($router) { |
|
94 | // Logout route... |
|
95 | $router->get('logout', $this->adminController('getLogout'))->name('logout'); |
|
96 | ||
97 | if (\Flare::show('login')) { |
|
98 | // Login request reoutes... |
|
99 | $router->get('login', $this->adminController('getLogin'))->name('login'); |
|
100 | $router->post('login', $this->adminController('postLogin'))->name('login'); |
|
101 | ||
102 | // Password reset link request routes... |
|
103 | $router->get('email', $this->adminController('getEmail'))->name('email'); |
|
104 | $router->post('email', $this->adminController('postEmail'))->name('email'); |
|
105 | ||
106 | // Password reset routes... |
|
107 | $router->get('reset/{token}', $this->adminController('getReset'))->name('reset'); |
|
108 | $router->post('reset', $this->adminController('postReset'))->name('reset'); |
|
109 | } |
|
110 | } |
|
111 | ); |
|
112 | } |
|
113 | } |
@@ 78-95 (lines=18) @@ | ||
75 | 'prefix' => \Flare::config('admin_url'), |
|
76 | 'as' => 'flare::', |
|
77 | ], |
|
78 | function ($router) { |
|
79 | // Logout route... |
|
80 | $router->get('logout', $this->adminController('getLogout'))->name('logout'); |
|
81 | ||
82 | if (\Flare::show('login')) { |
|
83 | // Login request reoutes... |
|
84 | $router->get('login', $this->adminController('getLogin'))->name('login'); |
|
85 | $router->post('login', $this->adminController('postLogin'))->name('login'); |
|
86 | ||
87 | // Password reset link request routes... |
|
88 | $router->get('email', $this->adminController('getEmail'))->name('email'); |
|
89 | $router->post('email', $this->adminController('postEmail'))->name('email'); |
|
90 | ||
91 | // Password reset routes... |
|
92 | $router->get('reset/{token}', $this->adminController('getReset'))->name('reset'); |
|
93 | $router->post('reset', $this->adminController('postReset'))->name('reset'); |
|
94 | } |
|
95 | } |
|
96 | ); |
|
97 | } |
|
98 | } |