Corrected API url for locations
This commit is contained in:
parent
aafcfabd26
commit
1c385e831a
|
@ -57,7 +57,7 @@ class ApiController < ApplicationController
|
|||
I18n.locale = :zh_tw
|
||||
name_zh_tw = category.title
|
||||
category_id = category.id.to_s
|
||||
@data << { name_en: name_en, name_zh_tw: name_zh_tw, category_id: category_id, location_link: "http://#{request.host_with_port}"+"/#{get_locations_api_index_path}"+"?category_id=#{category_id}"}
|
||||
@data << { name_en: name_en, name_zh_tw: name_zh_tw, category_id: category_id, location_link: "http://#{request.host_with_port}"+"#{get_locations_api_index_path}"+"?category_id=#{category_id}"}
|
||||
end
|
||||
|
||||
render :json => JSON.pretty_generate(@data)
|
||||
|
|
Loading…
Reference in New Issue