From f893be3d008c91aa57ca4c3ff40fefb1ae852f78 Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Tue, 22 Aug 2017 13:10:16 +0300 Subject: [PATCH] Transcude names, fix ataraxy routes --- perf-test/clj/reitit/opensensors_routing_test.clj | 10 +++++----- src/reitit/core.cljc | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/perf-test/clj/reitit/opensensors_routing_test.clj b/perf-test/clj/reitit/opensensors_routing_test.clj index 8c2570d9..5487e043 100644 --- a/perf-test/clj/reitit/opensensors_routing_test.clj +++ b/perf-test/clj/reitit/opensensors_routing_test.clj @@ -202,10 +202,10 @@ "whoami" :test/route41 "login" :test/route51} "v2/" {"whoami" :test/route1 - ["users/" :user-id "/"] {"datasets" :test/route2 - "devices" :test/route25 - "topics" {"/bulk" :test/route29 - "" :test/route45}} + ["users/" :user-id] {"/datasets" :test/route2 + "/devices" :test/route25 + "/topics" {"/bulk" :test/route29 + "" :test/route45}} "public/" {["projects/" :project-id] {"/datasets" :test/route3 "" :test/route27} #_#_"messages/dataset/bulk" :test/route20 @@ -264,7 +264,7 @@ "/v2/" {"whoami" [:test/route1] ["users/" user-id] {"/datasets" [:test/route2 user-id] "/devices" [:test/route25 user-id] - "topics/" {"bulk" [:test/route29 user-id] + "/topics" {"/bulk" [:test/route29 user-id] "" [:test/route45 user-id]}} "public/" {["projects/" project-id] {"/datasets" [:test/route3 project-id] "" [:test/route27 project-id]} diff --git a/src/reitit/core.cljc b/src/reitit/core.cljc index a55fac91..70246f22 100644 --- a/src/reitit/core.cljc +++ b/src/reitit/core.cljc @@ -86,7 +86,7 @@ (if name #{name})) (defn find-names [routes opts] - (into [] (keep #(-> % second :name) routes))) + (into [] (keep #(-> % second :name)) routes)) (defn compile-route [[p m :as route] {:keys [compile] :as opts}] [p m (if compile (compile route opts))])