0
0
Fork 0
zero-blog/controller/method_not_allowed.rb

11 lines
251 B
Ruby

module Routes
class MethodNotAllowed
def self.call(session)
session.response.status = 405
session.response.content_type = 'text/html'
session.response.body = 'Method not supported by this resource!'
nil
end
end
end