Description
If add not use argument to endpoint is returning incorrect response:
{"error":{"code":404,"message":"Endpoint has an invalid elementType"}}
Steps to reproduce
'api/articles' => function($someId) {
..
}
- Add code
- Make a request
- Check error message of response
Additional info
- Craft version: 3.5.14
- PHP version: 7.3.15
- Database driver & version: MySQL 5.6.39
- Plugins & versions:
Description
If add not use argument to endpoint is returning incorrect response:
{"error":{"code":404,"message":"Endpoint has an invalid elementType"}}
Steps to reproduce
'api/articles' => function($someId) {
..
}
Additional info