Add inflection for API acronym
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class Api::ApplicationController < ApplicationController
|
||||
class API::ApplicationController < ApplicationController
|
||||
skip_before_filter :verify_authenticity_token
|
||||
skip_before_filter :authenticate!, :only => [:cor_preflight]
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
class Api::PlaylistsController < Api::ApplicationController
|
||||
class API::PlaylistsController < API::ApplicationController
|
||||
respond_to :json
|
||||
|
||||
def index
|
||||
|
@@ -1,4 +1,4 @@
|
||||
class Api::SessionsController < Api::ApplicationController
|
||||
class API::SessionsController < API::ApplicationController
|
||||
skip_before_filter :authenticate!, :only => [:create]
|
||||
|
||||
def create
|
||||
|
@@ -1,4 +1,4 @@
|
||||
class Api::SoundsController < Api::ApplicationController
|
||||
class API::SoundsController < API::ApplicationController
|
||||
# FIXME: add some tests!
|
||||
def show
|
||||
sound = Sound.find params[:id]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
class Api::TracksController < Api::ApplicationController
|
||||
class API::TracksController < API::ApplicationController
|
||||
def index
|
||||
@tracks = Track.all
|
||||
end
|
||||
|
Reference in New Issue
Block a user