mirror of
https://github.com/ryankazokas/turbovault-app.git
synced 2026-04-17 02:52:55 +00:00
Moving to github
This commit is contained in:
17
app/controllers/api/v1/platforms_controller.rb
Normal file
17
app/controllers/api/v1/platforms_controller.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user