<?php

declare(strict_types=1);

use App\Controllers\Public\HomeController;
use App\Controllers\Public\RegistrationController;

/** @var \App\Core\Application $app */
$router = $app->router();

$router->get(
    '/',
    [
        HomeController::class,
        'index',
    ]
);

$router->get(
    '/register',
    [
        RegistrationController::class,
        'create',
    ]
);

$router->post(
    '/register',
    [
        RegistrationController::class,
        'store',
    ]
);

$router->get(
    '/registration/success',
    [
        RegistrationController::class,
        'success',
    ]
);

$router->get(
    '/api/municipalities/{districtId}',
    [
        RegistrationController::class,
        'municipalities',
    ]
);