slovocast/code/src/Routes.php

25 lines
445 B
PHP
Raw Normal View History

<?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);
}
}