new klaus URL scheme
s-ol
11 months ago
21 | 21 | |
22 | 22 | (defmethod url :url [{to :to}] to) |
23 | 23 | (defmethod url :mmm [{[_ path & rest] :to}] (str "//mmm.s-ol.nu" path "/" (join ":" rest))) |
24 | (defmethod url :klaus [{[_ repo & rest] :to}] (str "//git.s-ol.nu/" repo "/" (join "/" rest))) | |
24 | (defmethod url :klaus [{[_ repo & rest] :to}] (str "//git.s-ol.nu/" repo "/-/" (join "/" rest))) | |
25 | 25 | |
26 | 26 | (defn handler [req] |
27 | 27 | (if-let [route (some #(matches? % (:uri req)) routes)] |