我有一个在Symfony 4.1上运行的i18n项目 .

我的目录结构

Controller
  |-Api
  |-Admin
  |-HomeController.php

我在annotations.yaml中的路由配置

api_controllers:
    resource: ../../src/Controller/Api
    type: annotation
    prefix: /api

web_controllers:
    resource: ../../src/Controller/

    ## I need something like this
    exclude_resource: ../../src/Controller/Api

    type: annotation
    prefix:
        en: ''
        de: '/de'

我不需要像/ de / api / programmers那样的api路由,我该如何正确设置?