Using gin for API.
Its route.rb
func Init(api *gin.Engine) { r := api.Group("/v1") r.GET("/sites/search/:url", site.Search)