diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-26 04:43:12 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-26 04:43:12 +0300 |
| commit | 9cb35f2bf2127cc8ac077aae17514a57e576217d (patch) | |
| tree | bf809e73dded8e481d0a2e16c488831052016313 /public/app/routes/user.php | |
| parent | b594effb847b86fc6b1dae49d7948c46bba35e58 (diff) | |
| download | classroom-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.php | 6 |
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']); } } ); |
