summaryrefslogtreecommitdiff
path: root/public/app/routes
diff options
context:
space:
mode:
Diffstat (limited to 'public/app/routes')
-rw-r--r--public/app/routes/user.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/app/routes/user.php b/public/app/routes/user.php
index d419a5b..7ad0fa6 100644
--- a/public/app/routes/user.php
+++ b/public/app/routes/user.php
@@ -10,10 +10,10 @@ use app\controllers\Classroom_user;
// common requests (GET method)
// --- -- -- - - -
-// request login ... -> sends to POST:/account/check-login
+// request login ... -> then sends to POST:/account/check-login
Route::add('/login', function() { Render::view('user/login'); });
-// request registration ... -> sends to POST:/account/register
+// request registration ... -> then sends to POST:/account/register
Route::add('/registration', function() { Render::view('user/registration'); });
// request logout
@@ -65,7 +65,7 @@ Route::add('/account/profile', function() {
);
} else {
- print_r($user);
+ Render::json(['success' => true, 'status' => 'user is connected']);
}
}
);