services:
    _defaults:
        autowire: true
        autoconfigure: true
        public: true

    Backend\Modules\Pages\Domain\ModuleExtra\ModuleExtraRepository: ~
    Backend\Modules\Pages\Domain\PageBlock\PageBlockRepository: ~
    Backend\Modules\Pages\Domain\Page\PageRepository: ~
    Backend\Modules\Pages\Api\PageController: ~

services:
    _defaults:
        autowire: true
        autoconfigure: true
        public: true

    Backend\Modules\Pages\Domain\ModuleExtra\ModuleExtraRepository: ~
    Backend\Modules\Pages\Domain\PageBlock\PageBlockRepository: ~
    Backend\Modules\Pages\Domain\Page\PageRepository: ~
    Backend\Modules\Pages\Api\:
        resource: '../../Api/*'

Extend autoload to all classes in API directory
Extend autoload to all classes in API directory
