<?php

namespace Application;

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

return array(
    'router' => [
        'routes' => [
            'data' => [
                'child_routes' => [
                    'wordRotator' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/wordRotator',
                        ],
                        'child_routes' => [
                            'words' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/words',
                                    'defaults' => [
                                        'controller' => SyncController::class,
                                        'action' => 'getWords',
                                        'resource' => 'default',
                                    ]
                                ],
                            ],
                            'levels' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/levels',
                                    'defaults' => [
                                        'controller' => SyncController::class,
                                        'action' => 'getLevels',
                                        'resource' => 'default',
                                    ]
                                ],
                            ],
                    'getAuthToken' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/token',
                            'defaults' => [
                                'controller' => SyncController::class,
                                'action' => 'getAuthToken',
                                'resource' => 'default',
                            ]
                        ],
                    ],
                            'rate' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/rate',
                                    'defaults' => [
                                        'controller' => SyncController::class,
                                        'action' => 'rate',
                                        'resource' => 'default',
                                    ]
                                ],
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],
);
