Skip to content

Commit

Permalink
Fixed controller - route syntax to match with new convention
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Jan 16, 2025
1 parent 1c21db0 commit 07ace98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bundle/Core/Resources/config/routing/internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,26 @@ ibexa.content.view:

ibexa.version.preview:
path: /content/versionview/{contentId}/{versionNo}/{language}/site_access/{siteAccessName}
controller: ibexa.controller.content.preview:previewContentAction
controller: ibexa.controller.content.preview::previewContentAction
defaults:
siteAccessName: null
methods: [GET]

ibexa.content.preview.default:
path: /content/versionview/{contentId}/{versionNo}/{language}
defaults: { _controller: ibexa.controller.content.preview:previewContentAction }
defaults: { _controller: ibexa.controller.content.preview::previewContentAction }
methods: [GET]

ibexa.user_hash:
path: /_fos_user_context_hash

ibexa.content.download:
path: /content/download/{contentId}/{fieldIdentifier}/{filename}
defaults: { _controller: Ibexa\Core\MVC\Symfony\Controller\Content\DownloadController:downloadBinaryFileAction }
defaults: { _controller: Ibexa\Core\MVC\Symfony\Controller\Content\DownloadController::downloadBinaryFileAction }

ibexa.content.download.field_id:
path: /content/download/{contentId}/{fieldId}
defaults: { _controller: Ibexa\Core\MVC\Symfony\Controller\Content\DownloadController:downloadBinaryFileByIdAction }
defaults: { _controller: Ibexa\Core\MVC\Symfony\Controller\Content\DownloadController::downloadBinaryFileByIdAction }
requirements:
contentId: '\d+'
fieldId: '\d+'

0 comments on commit 07ace98

Please sign in to comment.