search

Home  >  Q&A  >  body text

thinkphp3.2.3 interface versioning v1, v2

Using thinkphp to develop interfaces, how to version the interface, similar to v1 and v2

欧阳克欧阳克2787 days ago832

reply all(1)I'll reply

  • 仅有的幸福

    仅有的幸福2017-06-23 09:13:30

    tp doesn’t seem to support it. We wrote the framework ourselves, processed it at the routing layer, and added a layer to determine whether there is a version number. The basic url pattern is /Module/Version/Controller/Action

    You can try to modify the routing rules of TP and rewrite the pathinfo

    reply
    0
  • Cancelreply