search

Home  >  Q&A  >  body text

Why does the post method of symfony's restBundle automatically add s or es?

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?

黄舟黄舟2794 days ago424

reply all(1)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 16:46:00

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

    use FOSRestBundleControllerAnnotations as Rest;

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

    reply
    0
  • Cancelreply