Permalink
Browse files

correct API for retrieving file list

  • Loading branch information...
1 parent d3e1e72 commit e8d46c976da8ab294b2e8da90cc0f20b5e839a6e @shelling committed Dec 12, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 assets/javascripts/collections/files.js
  2. +1 −1 routes/file_handler.rb
View
2 assets/javascripts/collections/files.js
@@ -2,5 +2,5 @@ DropboxIO.Collection.Files = Backbone.Collection.extend({
initialize: function() {
},
model: DropboxIO.Model.File,
- url: "/file/list",
+ url: "/file",
});
View
2 routes/file_handler.rb
@@ -1,6 +1,6 @@
class App < Sinatra::Base
- get "/file/list" do
+ get "/file/?" do
MogFile.all.to_json
end

0 comments on commit e8d46c9

Please sign in to comment.