mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
16 lines
367 B
Ruby
16 lines
367 B
Ruby
module Api
|
|
module V1
|
|
class PostStatusesController < BaseController
|
|
include Api::V1::Serializers
|
|
|
|
# List all post statuses
|
|
def index
|
|
post_statuses = PostStatus.all
|
|
|
|
authorize([:api, PostStatus])
|
|
|
|
render json: post_statuses.map { |post_status| post_status.slice(*POST_STATUS_JSON_ATTRIBUTES) }
|
|
end
|
|
end
|
|
end
|
|
end |