    * @param {String?} route      route
   ###
   addRoute: (path, route) ->
-    unless route?
-      routes = path
-    else
-      routes = {}
-      routes[path] = route
-    @routes = objectAssign(@routes, routes)
+    if path?
+      unless route?
+        routes = path
+      else
+        routes = {}
+        routes[path] = route
+      @routes = objectAssign(@routes, routes)
 
   ###*
    * set routes for authenticated only

        argu.fragment_arr = fragment.split('/')
        argu.match = match
        if logined?
          auth = @auth[r]
          if (auth?.required == true && !logined) || (auth?.required == false && logined)
            if auth.renavigate?
              for re_, r_ of @routes
                match_ = auth.renavigate.match new RegExp("^#{re_}$")
                if match_?
                  match_.shift()
                  argu = {}
                  argu.route = r_
                  argu.route_arr = r_.split(':')

      match = fragment.match new RegExp("^#{re}$")
      if match?
        match.shift()
        delete match.index
        delete match.input
        argu = {}
        argu.route = r
        argu.route_arr = r.split(':')
