2016-03-30 15:51:27 +08:00
|
|
|
#coding=utf-8
|
|
|
|
|
|
|
|
module Mobile
|
|
|
|
module Apis
|
|
|
|
class BlogComments< Grape::API
|
|
|
|
resources :blog_comments do
|
|
|
|
|
|
|
|
desc "get special topic"
|
|
|
|
get ':id' do
|
2016-07-04 16:50:49 +08:00
|
|
|
user = current_user
|
2016-03-30 15:51:27 +08:00
|
|
|
blog = BlogComment.find params[:id]
|
2016-04-07 11:16:38 +08:00
|
|
|
present :data, blog, with: Mobile::Entities::BlogComment,user: user
|
2016-03-30 15:51:27 +08:00
|
|
|
present :status, 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2016-03-30 18:00:39 +08:00
|
|
|
|