<?php

namespace Application;

use Application\Controller\IndexController;
use Zend\Router\Http\Segment;

return array(
    'router' => [
        'routes' => [
            'data' => [
                'child_routes' => [
                    'words' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/words',
                            'defaults' => [
                                'controller' => IndexController::class,
                                'action' => 'selectWords',
                                'resource' => 'select-words',
                            ],
                        ],
                    ],
                    'checkWord' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/checkWord',
                            'defaults' => [
                                'controller' => IndexController::class,
                                'action' => 'changeChecked',
                                'resource' => 'select-words',
                            ],
                        ],
                    ],
                    'getDoubleWords' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/getDoubleUsedWordsAction',
                            'defaults' => [
                                'controller' => IndexController::class,
                                'action' => 'getDoubleUsedWords',
                                'resource' => 'admin',
                            ],
                        ],
                    ],
                    'deleteLevel' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/deleteLevel',
                            'defaults' => [
                                'controller' => IndexController::class,
                                'action' => 'deleteLevel',
                                'resource' => 'admin',
                            ],
                        ],
                    ],
                    'generateLevels' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/generateLevels',
                            'defaults' => [
                                'controller' => IndexController::class,
                                'action' => 'generateLevels',
                                'resource' => 'admin',
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],
);