2019-08-25 14:29:28 +00:00
|
|
|
module FrontendUrlsHelper
|
|
|
|
def frontend_url(path, **query_params)
|
2019-10-20 08:47:26 +00:00
|
|
|
url_params = query_params.blank? ? '' : "?#{query_params.to_query}"
|
2019-08-25 14:29:28 +00:00
|
|
|
"#{root_url}app/#{path}#{url_params}"
|
|
|
|
end
|
|
|
|
end
|