core/routes/base.rb in owl-cms-0.1.3 vs core/routes/base.rb in owl-cms-0.1.5

- old
+ new

@@ -3,12 +3,16 @@ module CMS module Base extend Sinatra::Extension not_found do - # => If 404, let's look for the page somewhere else. + render_page('/not-found') end + error do + render_page('/error') + end + get '*' do |path| path = "/home" if path == '/' render_page(path) end \ No newline at end of file