Implement tracks/show in AP
This commit is contained in:
@@ -3,5 +3,9 @@ module API
|
||||
def index
|
||||
@tracks = Track.all
|
||||
end
|
||||
|
||||
def show
|
||||
@track = Track.find(params[:id])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
4
app/views/api/tracks/show.rabl
Normal file
4
app/views/api/tracks/show.rabl
Normal file
@@ -0,0 +1,4 @@
|
||||
object @track
|
||||
|
||||
attribute :id
|
||||
attribute :name
|
Reference in New Issue
Block a user