How to add regex constraints to Gin framework's router?

前端 未结 0 1796
情话喂你
情话喂你 2020-11-27 15:34

Use Rails\' routing, for a URL like https://www.amazon.com/posts/1, can use this way to do

get \'posts/:url\', to: \'posts#search\', constraints:         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题