|
581 | 581 | ],
|
582 | 582 | 'may_terminate' => true,
|
583 | 583 | 'child_routes' => [
|
584 |
| - 'list-delete' => [ |
585 |
| - 'type' => Segment::class, |
| 584 | + 'lists' => [ |
| 585 | + 'type' => Literal::class, |
586 | 586 | 'options' => [
|
587 |
| - 'route' => '/list/delete/:name', |
588 |
| - 'constraints' => [ |
589 |
| - 'name' => '[a-zA-Z0-9_-]+', |
590 |
| - ], |
| 587 | + 'route' => '/lists', |
591 | 588 | 'defaults' => [
|
592 |
| - 'action' => 'deleteList', |
| 589 | + 'action' => 'lists', |
| 590 | + ], |
| 591 | + ], |
| 592 | + 'may_terminate' => true, |
| 593 | + 'child_routes' => [ |
| 594 | + 'add' => [ |
| 595 | + 'type' => Literal::class, |
| 596 | + 'options' => [ |
| 597 | + 'route' => '/add', |
| 598 | + 'defaults' => [ |
| 599 | + 'action' => 'addList', |
| 600 | + ], |
| 601 | + ], |
| 602 | + ], |
| 603 | + 'edit' => [ |
| 604 | + 'type' => Segment::class, |
| 605 | + 'options' => [ |
| 606 | + 'route' => '/edit/:name', |
| 607 | + 'constraints' => [ |
| 608 | + 'name' => '[a-zA-Z0-9_-]+', |
| 609 | + ], |
| 610 | + 'defaults' => [ |
| 611 | + 'action' => 'editList', |
| 612 | + ], |
| 613 | + ], |
| 614 | + ], |
| 615 | + 'delete' => [ |
| 616 | + 'type' => Segment::class, |
| 617 | + 'options' => [ |
| 618 | + 'route' => '/delete/:name', |
| 619 | + 'constraints' => [ |
| 620 | + 'name' => '[a-zA-Z0-9_-]+', |
| 621 | + ], |
| 622 | + 'defaults' => [ |
| 623 | + 'action' => 'deleteList', |
| 624 | + ], |
| 625 | + ], |
| 626 | + ], |
| 627 | + 'sync' => [ |
| 628 | + 'type' => Literal::class, |
| 629 | + 'options' => [ |
| 630 | + 'route' => '/sync', |
| 631 | + 'defaults' => [ |
| 632 | + 'action' => 'syncLists', |
| 633 | + ], |
| 634 | + ], |
593 | 635 | ],
|
594 | 636 | ],
|
595 | 637 | ],
|
|
705 | 747 | 'template_path_stack' => [
|
706 | 748 | 'database' => __DIR__ . '/../view/',
|
707 | 749 | ],
|
| 750 | + 'template_map' => [ |
| 751 | + 'database/settings/edit-list' => __DIR__ . '/../view/database/settings/add-list.phtml', |
| 752 | + ], |
708 | 753 | 'strategies' => [
|
709 | 754 | 'ViewJsonStrategy',
|
710 | 755 | ],
|
|
0 commit comments