Implement basic login function; add basic styling
This commit is contained in:
parent
2bb7ea54a2
commit
8be7988d97
12 changed files with 252 additions and 27 deletions
|
|
@ -3,13 +3,20 @@ declare(strict_types=1);
|
|||
|
||||
namespace MailAccountAdmin;
|
||||
|
||||
use MailAccountAdmin\Login\LoginController;
|
||||
use MailAccountAdmin\Frontend\Dashboard\DashboardController;
|
||||
use MailAccountAdmin\Frontend\Login\LoginController;
|
||||
use Slim\App;
|
||||
|
||||
class Routes
|
||||
{
|
||||
public static function setRoutes(App $app): void
|
||||
{
|
||||
$app->get('/', LoginController::class . ':showLoginPage');
|
||||
// Login
|
||||
$app->get('/login', LoginController::class . ':showLoginPage');
|
||||
$app->post('/login', LoginController::class . ':authenticateUser');
|
||||
$app->get('/logout', LoginController::class . ':logoutUser');
|
||||
|
||||
// Dashboard
|
||||
$app->get('/', DashboardController::class . ':showDashboard');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue