aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2022-01-04 23:14:15 +0000
committers-ol <s+removethis@s-ol.nu>2022-01-04 23:14:15 +0000
commitd93942ca5f507d19f06190411631f65304f214b1 (patch)
tree0026f839fdd9fae4ce33937ce61de7c923760556 /src
parentadd ba/pdf (diff)
downloadredirectly-d93942ca5f507d19f06190411631f65304f214b1.tar.gz
redirectly-d93942ca5f507d19f06190411631f65304f214b1.zip
add iso-kb-explorer
Diffstat (limited to 'src')
-rw-r--r--src/redirectly/core.clj1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/redirectly/core.clj b/src/redirectly/core.clj
index 036e937..e8c9015 100644
--- a/src/redirectly/core.clj
+++ b/src/redirectly/core.clj
@@ -22,6 +22,7 @@
(defmethod url :url [{to :to}] to)
(defmethod url :mmm [{[_ path & rest] :to}] (str "//mmm.s-ol.nu" path "/" (join ":" rest)))
+(defmethod url :klaus [{[_ repo & rest] :to}] (str "//git.s-ol.nu/" repo "/" (join "/" rest)))
(defn handler [req]
(if-let [route (some #(matches? % (:uri req)) routes)]