---
Name: admin-graphql-routes
Only:
  moduleexists: silverstripe/graphql
Before:
   - '#adminroutes'
---
SilverStripe\Control\Director:
  rules:
    'admin/graphql':
      Controller: '%$SilverStripe\GraphQL\Controller.admin'
      Stage: Stage
      Permissions:
        CMS_ACCESS: CMS_ACCESS
---
Name: adminroutes
After:
  - '#rootroutes'
  - '#coreroutes'
---
SilverStripe\Control\Director:
  rules:
    'admin': 'SilverStripe\Admin\AdminRootController'
