diff --git a/app/controllers/api/v1/issues_controller.rb b/app/controllers/api/v1/issues_controller.rb index f575c363d..f84c1bba9 100644 --- a/app/controllers/api/v1/issues_controller.rb +++ b/app/controllers/api/v1/issues_controller.rb @@ -1,5 +1,6 @@ # -*- encoding : utf-8 -*- class Api::V1::IssuesController < Api::V1::BaseController + respond_to :json before_filter :authenticate_user! skip_before_filter :authenticate_user!, :only => [:show] if APP_CONFIG['anonymous_access'] @@ -32,6 +33,7 @@ class Api::V1::IssuesController < Api::V1::BaseController end def show + respond_with @issue end def create