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

18 lines
382 B
Ruby
Raw Normal View History

2016-03-30 17:47:44 +08:00
#coding=utf-8
module Mobile
module Apis
class JournalForMessages< Grape::API
resources :journal_for_messages do
desc "get special journal"
get ':id' do
jour = JournalsForMessage.find params[:id]
present :data, jour, with: Mobile::Entities::Jours
present :status, 0
end
end
end
end
end