    * @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

   * @param {String} renavigate   path of renavigation(like redirect)
  ###
  setAuth: (route, required, renavigate) ->
    unless required? && renavigate?
      auth = route
    else
      auth = {}
      auth[route] =
        required: required
        renavigate: renavigate

      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(':')
