mirror of
https://github.com/metosin/reitit.git
synced 2026-02-04 19:33:12 +00:00
if -> when
This commit is contained in:
parent
b2c0b2fdfa
commit
f2d3d0a125
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@
|
||||||
(walk-one [pacc macc routes]
|
(walk-one [pacc macc routes]
|
||||||
(if (vector? (first routes))
|
(if (vector? (first routes))
|
||||||
(walk-many pacc macc routes)
|
(walk-many pacc macc routes)
|
||||||
(if (string? (first routes))
|
(when (string? (first routes))
|
||||||
(let [[path & [maybe-arg :as args]] routes
|
(let [[path & [maybe-arg :as args]] routes
|
||||||
[data childs] (if (or (vector? maybe-arg) (nil? maybe-arg))
|
[data childs] (if (or (vector? maybe-arg) (nil? maybe-arg))
|
||||||
[{} args]
|
[{} args]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue