Why does the post method of symfony's restBundle automatically add s or es?
黄舟2017-05-16 16:44:00
0
1
409
For example, the prefixes are all pc, there are two Actions a and b, which are get and post requests respectively, and the console debugging routes are pc/a and pcs/bs respectively. I don’t know why this is the case?
RestfulBundle is the default. If you want to use this s, you can define routing by yourself
use FOSRestBundleControllerAnnotations as Rest;
@RestGet("/test/{id}")