Files
turbovault-app/app/controllers/api/v1/platforms_controller.rb
2026-03-28 19:24:29 -04:00

18 lines
368 B
Ruby

module Api
module V1
class PlatformsController < BaseController
skip_before_action :authenticate_api_token, only: [ :index, :show ]
def index
@platforms = Platform.order(:name)
render json: @platforms
end
def show
@platform = Platform.find(params[:id])
render json: @platform
end
end
end
end