Handle 404 not found error in API
This commit is contained in:
7
app/controllers/api/errors_controller.rb
Normal file
7
app/controllers/api/errors_controller.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
module API
|
||||
class ErrorsController < ApplicationController
|
||||
def not_found
|
||||
head :not_found
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user