Schemes¶
You can set a rule, that your action will be triggered only by https. By default ( when schemes is not specified ) protocol is not important, so both http and https will pass.
| 1 2 3 4 5 6 7 8 | demo_clients-destroy:
  path:         api/demo/clients/{uid}
  controller:   LMS\Demo\Controller\ClientApiController::destroy
  schemes:      https
  requirements:
     uid:       \d+
  defaults:
     plugin:    ClientApi
 | 
Tip
Required: No
Variants: http | https
Multiple protocols¶
You can specify more than just one protocol
| 1 2 3 4 5 6 7 8 | demo_clients-destroy:
   path:         api/demo/clients/{uid}
   controller:   LMS\Demo\Controller\ClientApiController::destroy
   schemes:      [http, https]
   requirements:
      uid:       \d+
   defaults:
      plugin:    ClientApi
 |