Using thinkphp to develop interfaces, how to version the interface, similar to v1 and v2
仅有的幸福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