You are here

jsonrpc.routing.yml in JSON-RPC 2.x

Same filename and directory in other branches
  1. 8 jsonrpc.routing.yml

File

jsonrpc.routing.yml
View source
  1. jsonrpc.handler:
  2. path: '/jsonrpc'
  3. defaults:
  4. _controller: '\Drupal\jsonrpc\Controller\HttpController::resolve'
  5. methods: [POST, GET, OPTIONS]
  6. requirements:
  7. _permission: 'use jsonrpc services'
  8. options:
  9. _auth: ['basic_auth', 'oauth2']