浏览代码

changement pagination publicEvent

Maha Bouchiba 2 年之前
父节点
当前提交
485d19b392
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      env/.env.docker
  2. 2 1
      src/Entity/Public/PublicEvent.php

+ 1 - 1
env/.env.docker

@@ -8,7 +8,7 @@ DATABASE_URL=mysql://root:mysql660@db:3306/opentalent?serverVersion=5.7
 ###< doctrine/doctrine-bundle ###
 
 ###> nelmio/cors-bundle ###
-CORS_ALLOW_ORIGIN=^https?:\/\/(localhost|127\.0\.0\.1|(local.(admin|app|app|frames|agenda).opentalent.fr))(:[0-9]+)?$
+CORS_ALLOW_ORIGIN=^https?:\/\/(localhost|127\.0\.0\.1|(local.(admin|app|app|frames|agenda|maestro).opentalent.fr))(:[0-9]+)?$
 ###< nelmio/cors-bundle ###
 
 ###> api v1 ###

+ 2 - 1
src/Entity/Public/PublicEvent.php

@@ -26,7 +26,8 @@ use Doctrine\ORM\Mapping as ORM;
             uriTemplate: '/public/events/{uuid}'
         ),
         new GetCollection(
-            uriTemplate: '/public/events'
+            uriTemplate: '/public/events',
+            paginationItemsPerPage: 15,
         )
     ]
 )]