Skip to content

Commit

Permalink
mount the API
Browse files Browse the repository at this point in the history
  • Loading branch information
ashchan committed Mar 3, 2012
1 parent 7f974f0 commit 4df3219
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/routes.rb
@@ -1,4 +1,6 @@
RubyChina::Application.routes.draw do
require 'api'

resources :sites

resources :posts
Expand Down Expand Up @@ -89,6 +91,8 @@
resources :locations
end

mount RubyChina::API => "/"

if Rails.env.development?
mount UserMailer::Preview => 'mails/user'
end
Expand Down

0 comments on commit 4df3219

Please sign in to comment.