2016-03-21 18:17:39 +08:00
|
|
|
#coding=utf-8
|
|
|
|
|
|
|
|
module Mobile
|
|
|
|
module Apis
|
|
|
|
class Issues< Grape::API
|
|
|
|
resources :issues do
|
|
|
|
|
|
|
|
desc "get special issuse"
|
|
|
|
get ':id' do
|
2016-03-30 15:51:27 +08:00
|
|
|
issue = Issue.find params[:id]
|
2016-03-21 18:17:39 +08:00
|
|
|
present :data, issue, with: Mobile::Entities::Issue
|
|
|
|
present :status, 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|