def routes(path = nil, &blk)
      if path or block_given?
        @routes = Config::Routes.new(root, path, &blk)
      else
        @routes
      end
    end
def routes(path = nil, &blk)
      if path or block_given?
        @routes = Config::Routes.new(root, path, &blk)
      else
        @routes
      end
    end
Application routes.

 Specify a set of routes for the application, by passing a block, or a
 relative path where to find the file that describes them.

 By default it's `nil`.

 This is part of a DSL, for this reason when this method is called with
 an argument, it will set the corresponding instance variable. When
 called without, it will return the already set value, or the default.

 @overload routes(blk)
   Specify a set of routes in the given block
   @param blk [Proc] the routes definitions

 @overload routes(path)
   Specify a relative path where to find the routes file
   @param path [String] the relative path

 @overload routes
   Gets the value
   @return [Hanami::Config::Routes] the set of routes

 @since 0.1.0

 @see http://rdoc.info/gems/hanami-router/Hanami/Router

 @example Getting the value
   require 'hanami'

   module Bookshelf
     class Application < Hanami::Application
     end
   end

   Bookshelf::Application.configuration.routes
     # => nil

 @example Setting the value, by passing a block
   require 'hanami'

   module Bookshelf
     class Application < Hanami::Application
       configure do
         routes do
           get '/', to: 'dashboard#index'
           resources :books
         end
       end
     end
   end

   Bookshelf::Application.configuration.routes
     # => #<Hanami::Config::Routes:0x007ff50a991388 @blk=#<Proc:0x007ff50a991338@(irb):4>, @path=#<Pathname:.>>

 @example Setting the value, by passing a relative path
   require 'hanami'

   module Bookshelf
     class Application < Hanami::Application
       configure do
         routes 'config/routes'
       end
     end
   end

   Bookshelf::Application.configuration.routes
     # => #<Hanami::Config::Routes:0x007ff50a991388 @blk=nil, @path=#<Pathname:config/routes.rb>>