Skip to content

Commit

Permalink
Correcao do crawler da pagina para pegar linha de onibus
Browse files Browse the repository at this point in the history
  • Loading branch information
petersonfs committed Oct 26, 2012
1 parent 373ad2a commit 06a0555
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
class BusNow < Sinatra::Base
BASE_URL = "http://www.urbs.curitiba.pr.gov.br/horario-de-onibus/"

get "/api/schedules"
content_type :json
end

get "/api/schedules/:code" do |code|
content_type :json
result = crawl_page "#{code}"
Expand Down

0 comments on commit 06a0555

Please sign in to comment.