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

18 lines
349 B
Ruby
Raw Normal View History

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
blog = BlogComment.find params[:id]
2016-03-30 17:49:05 +08:00
present :data, blog, with: Mobile::Entities::BlogComment
2016-03-30 15:51:27 +08:00
present :status, 0
end
end
end
end
end