* Add Api::ApplicationController * Route OPTION requests (CORS preflight) to API application controller * Filter all API requests through #cor_filter in API application controller
9 lines
164 B
Ruby
9 lines
164 B
Ruby
class Api::V0::PlaylistsController < Api::ApplicationController
|
|
respond_to :json
|
|
|
|
def index
|
|
@playlists = Playlist.all
|
|
respond_with @playlists
|
|
end
|
|
end
|