mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 08:51:12 +00:00
cleanup
This commit is contained in:
parent
5b97387bad
commit
e4eae4f3b2
2 changed files with 3 additions and 3 deletions
|
|
@ -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]
|
||||||
|
|
|
||||||
|
|
@ -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))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue