summaryrefslogtreecommitdiff
path: root/public/app/routes/user.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-26 04:43:12 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-26 04:43:12 +0300
commit9cb35f2bf2127cc8ac077aae17514a57e576217d (patch)
treebf809e73dded8e481d0a2e16c488831052016313 /public/app/routes/user.php
parentb594effb847b86fc6b1dae49d7948c46bba35e58 (diff)
downloadclassroom-9cb35f2bf2127cc8ac077aae17514a57e576217d.tar.gz
classroom-9cb35f2bf2127cc8ac077aae17514a57e576217d.tar.bz2
classroom-9cb35f2bf2127cc8ac077aae17514a57e576217d.zip
alfa.2 version; seceral optimizations; added support for mail-relay
Diffstat (limited to 'public/app/routes/user.php')
-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']);
}
}
);