Why does the post method of symfony's restBundle automatically add s or es?
黄舟
黄舟 2017-05-16 16:44:00
0
1
381

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?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
phpcn_u1582

RestfulBundle is the default. If you want to use this s, you can define routing by yourself

use FOSRestBundleControllerAnnotations as Rest;

  • @RestGet("/test/{id}")

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template