thinkphp3.2.3 interface versioning v1, v2
欧阳克
欧阳克 2017-06-23 09:11:30
0
1
781

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

欧阳克
欧阳克

温故而知新,可以为师矣。 博客:www.ouyangke.com

reply all(1)
仅有的幸福

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

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