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

11 lines
235 B
Ruby

module Routes
class RouteNotFound
def self.call(session)
session.response.status = 404
session.response.content_type = 'text/html'
session.response.body = 'This page does not exist!'
nil
end
end
end