|
#coding=utf-8
|
|
|
|
module Mobile
|
|
module Apis
|
|
class BlogComments< Grape::API
|
|
resources :blog_comments do
|
|
|
|
desc "get special topic"
|
|
get ':id' do
|
|
blog = BlogComment.find params[:id]
|
|
present :data, blog, with: Mobile::Entities::BlogComment
|
|
present :status, 0
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|