Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6001 | Rev 6388 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6001 Rev 6056
Línea 494... Línea 494...
494
                        'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
494
                        'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
495
                        'action' => 'index'
495
                        'action' => 'index'
496
                    ]
496
                    ]
497
                ],
497
                ],
498
                'may_terminate' => true,
498
                'may_terminate' => true,
499
                'child_routes' => [],
499
                'child_routes' => [
-
 
500
                    'add' => [
-
 
501
                        'type' => Literal::class,
-
 
502
                        'options' => [
-
 
503
                            'route' => '/add',
-
 
504
                            'defaults' => [
-
 
505
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
-
 
506
                                'action' => 'add'
-
 
507
                            ],
-
 
508
                        ],
-
 
509
                    ],
-
 
510
                    'edit' => [
-
 
511
                        'type' => Segment::class,
-
 
512
                        'options' => [
-
 
513
                            'route' => '/edit/:id',
-
 
514
                            'constraints' => [
-
 
515
                                'id' => '[A-Za-z0-9\-]+\=*',
-
 
516
                            ],
-
 
517
                            'defaults' => [
-
 
518
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
-
 
519
                                'action' => 'edit'
-
 
520
                            ]
-
 
521
                        ]
-
 
522
                    ],
-
 
523
                    'delete' => [
-
 
524
                        'type' => Segment::class,
-
 
525
                        'options' => [
-
 
526
                            'route' => '/delete/:id',
-
 
527
                            'constraints' => [
-
 
528
                                'id' => '[A-Za-z0-9\-]+\=*',
-
 
529
                            ],
-
 
530
                            'defaults' => [
-
 
531
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
-
 
532
                                'action' => 'delete'
-
 
533
                            ]
-
 
534
                        ]
-
 
535
                    ],
-
 
536
                    'view' => [
-
 
537
                        'type' => Segment::class,
-
 
538
                        'options' => [
-
 
539
                            'route' => '/view/:id',
-
 
540
                            'constraints' => [
-
 
541
                                'id' => '[A-Za-z0-9\-]+\=*',
-
 
542
                            ],
-
 
543
                            'defaults' => [
-
 
544
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
-
 
545
                                'action' => 'view'
-
 
546
                            ]
-
 
547
                        ]
-
 
548
                    ],
-
 
549
                    'comments' => [
-
 
550
                        'type' => Segment::class,
-
 
551
                        'options' => [
-
 
552
                            'route' => '/comments/:id',
-
 
553
                            'constraints' => [
-
 
554
                                'id' => '[A-Za-z0-9\-]+\=*',
-
 
555
                            ],
-
 
556
                            'defaults' => [
-
 
557
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
-
 
558
                                'action' => 'comments'
-
 
559
                            ]
-
 
560
                        ],
-
 
561
                        'may_terminate' => true,
-
 
562
                        'child_routes' => [
-
 
563
                            'add' => [
-
 
564
                                'type' => Literal::class,
-
 
565
                                'options' => [
-
 
566
                                    'route' => '/add',
-
 
567
                                    'defaults' => [
-
 
568
                                        'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
-
 
569
                                        'action' => 'addComment'
-
 
570
                                    ]
-
 
571
                                ]
-
 
572
                            ],
-
 
573
                            'delete' => [
-
 
574
                                'type' => Segment::class,
-
 
575
                                'options' => [
-
 
576
                                    'route' => '/delete/:comment',
-
 
577
                                    'constraints' => [
-
 
578
                                        'comment' => '[A-Za-z0-9\-]+\=*',
-
 
579
                                    ],
-
 
580
                                    'defaults' => [
-
 
581
                                        'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
-
 
582
                                        'action' => 'deleteComment'
-
 
583
                                    ]
-
 
584
                                ]
-
 
585
                            ],
-
 
586
                        ]    
-
 
587
                    ],
-
 
588
                    'save-reaction' => [
-
 
589
                        'type' => Segment::class,
-
 
590
                        'options' => [
-
 
591
                            'route' => '/save-reaction/:id',
-
 
592
                            'constraints' => [
-
 
593
                                'id' => '[A-Za-z0-9\-]+\=*',
-
 
594
                            ],
-
 
595
                            'defaults' => [
-
 
596
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
-
 
597
                                'action' => 'saveReaction'
-
 
598
                            ]
-
 
599
                        ]
-
 
600
                    ],
-
 
601
                    'delete-reaction' => [
-
 
602
                        'type' => Segment::class,
-
 
603
                        'options' => [
-
 
604
                            'route' => '/delete-reaction/:id',
-
 
605
                            'constraints' => [
-
 
606
                                'id' => '[A-Za-z0-9\-]+\=*',
-
 
607
                            ],
-
 
608
                            'defaults' => [
-
 
609
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
-
 
610
                                'action' => 'deleteReaction'
-
 
611
                            ]
-
 
612
                        ]
-
 
613
                    ],
-
 
614
 
-
 
615
                ],
500
            ],
616
            ],
Línea 501... Línea 617...
501
            
617
            
502
            
618
            
Línea 564... Línea 680...
564
            'storage' => [
680
            'storage' => [
565
                'type' => Segment::class,
681
                'type' => Segment::class,
566
                'options' => [
682
                'options' => [
567
                    'route' => '/storage/type/:type[/code/:code][/filename/:filename][/]',
683
                    'route' => '/storage/type/:type[/code/:code][/filename/:filename][/]',
568
                    'constraints' => [
684
                    'constraints' => [
569
                        'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|message|microlearning-topic|microlearning-capsule|microlearning-slide|daily-pulse|engagement-reward',
685
                        'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|message|microlearning-topic|microlearning-capsule|microlearning-slide|daily-pulse|engagement-reward|knowledge-area',
570
                        'code' => '[A-Za-z0-9\-]+\=*',
686
                        'code' => '[A-Za-z0-9\-]+\=*',
571
                        'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
687
                        'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
572
                    ],
688
                    ],
573
                    // MjM5ODk0Mzgg
689
                    // MjM5ODk0Mzgg
574
                    'defaults' => [
690
                    'defaults' => [