Permalink
Browse files

generated bulk_api stuff

  • Loading branch information...
1 parent e750722 commit f29e51711ee6d1dd1e373dcd1df9def5c7e41ee4 @drnic committed Jun 7, 2011
Showing with 16 additions and 0 deletions.
  1. +9 −0 app/bulk/application_resource.rb
  2. +3 −0 config/initializers/bulk_api.rb
  3. +4 −0 config/routes.rb
@@ -0,0 +1,9 @@
+class ApplicationResource < Bulk::Resource
+ # In production you should filter resources that you want to handle.
+ # To do so, just uncomment the next line and set resources that should be
+ # available in Bulk API:
+ #
+ # resources :tasks, :projects
+
+end
+
@@ -0,0 +1,3 @@
+# If you want to use something other than ApplicationResource for your main class you can change it here, just uncomment the next line and change the class name:
+#
+# Bulk::Resource.application_resource_class = :ApplicationResource
View
@@ -1,4 +1,8 @@
Todos::Application.routes.draw do
+ mount Bulk::Sproutcore.new => "/_sproutcore"
+
+ bulk_routes "/api/bulk"
+
# The priority is based upon order of creation:
# first created -> highest priority.

0 comments on commit f29e517

Please sign in to comment.