update to pc

This commit is contained in:
silas
2018-05-23 19:04:35 +02:00
parent f7cbd1da71
commit 5cc52cf062
38 changed files with 2148 additions and 997 deletions

View File

@@ -0,0 +1,69 @@
<?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',
// ]
// ],
// ],
],
],
],
],
],
],
);