diff options
Diffstat (limited to 'public/app/routes/user.php')
| -rw-r--r-- | public/app/routes/user.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/public/app/routes/user.php b/public/app/routes/user.php index 7ad0fa6..146b212 100644 --- a/public/app/routes/user.php +++ b/public/app/routes/user.php @@ -29,6 +29,13 @@ Route::add('/account/activate', function() { Auth::activate(); } ); Route::add('/account/reset_password', function() { Auth::reset_password(); } ); +// invite +Route::add('/invite', function() { + Auth::allowRoles([1, 2, 3]); + Render::view('admin/invite'); +}); + + // Replies to common requests (POST method) // --- -- -- - - - @@ -43,11 +50,9 @@ Route::add('/account/check-login', function() { // user sends a registration form Route::add('/account/register', function() { - $response = Auth::register(); - Render::json($response); - }, - 'post' -); + $response = Auth::register(); + Render::json($response); +},'post'); // Account Management |
