issues api 列表

This commit is contained in:
Tim 2016-03-26 14:54:36 +08:00
parent 4f7d698076
commit 43de1a21b1
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module Mobile
desc "get special issuse"
get ':id' do
issue = Issue.find(params[:id])
issue = Issue.where("project_id = ?", params[:id])
present :data, issue, with: Mobile::Entities::Issue
present :status, 0
end