socialforge/app/api/mobile/apis/issues.rb

21 lines
441 B
Ruby
Raw Normal View History

2016-03-30 17:47:44 +08:00
#coding=utf-8
module Mobile
module Apis
class Issues< Grape::API
resources :issues do
2016-04-01 18:23:12 +08:00
include IssuesHelper
2016-03-30 17:47:44 +08:00
desc "get special issuse"
get ':id' do
authenticate!
user = current_user
2016-03-30 17:47:44 +08:00
issue = Issue.find params[:id]
2016-04-07 11:16:38 +08:00
present :data, issue, with: Mobile::Entities::Issue,user: user
2016-03-30 17:47:44 +08:00
present :status, 0
end
end
end
end
end