25 lines
445 B
PHP
25 lines
445 B
PHP
|
<?php
|
||
|
|
||
|
namespace Slovocast;
|
||
|
|
||
|
use Slim\App;
|
||
|
use Slovocast\Controller\User\{
|
||
|
RegisterUserPage,
|
||
|
RegisterUserAction
|
||
|
};
|
||
|
|
||
|
class Routes
|
||
|
{
|
||
|
public static function init(App $app): void
|
||
|
{
|
||
|
// User Routes
|
||
|
self::users($app);
|
||
|
}
|
||
|
|
||
|
protected static function users(App $app): void
|
||
|
{
|
||
|
$app->get('/users/register', RegisterUserPage::class);
|
||
|
$app->post('/users/register', RegisterUserAction::class);
|
||
|
}
|
||
|
}
|