This commit is contained in:
Tommi Reiman 2018-08-31 15:17:51 +03:00
parent 5b97387bad
commit e4eae4f3b2
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,4 @@
(ns reitit.frontend (ns reitit.frontend
""
(:require [clojure.set :as set] (:require [clojure.set :as set]
[reitit.coercion :as coercion] [reitit.coercion :as coercion]
[reitit.coercion :as rc] [reitit.coercion :as rc]
@ -31,6 +30,9 @@
(assoc match :parameters parameters))))) (assoc match :parameters parameters)))))
(defn match-by-name (defn match-by-name
"Given a router, route name and optionally path-parameters,
will return a Match (exact match), PartialMatch (missing path-parameters)
or `nil` (no match)."
([router name] ([router name]
(match-by-name router name {})) (match-by-name router name {}))
([router name path-params] ([router name path-params]

View file

@ -1,9 +1,7 @@
(ns reitit.frontend.history (ns reitit.frontend.history
""
(:require [reitit.core :as reitit] (:require [reitit.core :as reitit]
[reitit.core :as r] [reitit.core :as r]
[reitit.frontend :as rf] [reitit.frontend :as rf]
[reitit.impl :as impl]
[goog.events :as gevents]) [goog.events :as gevents])
(:import goog.Uri)) (:import goog.Uri))