aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2021-09-29 10:35:53 +0000
committers-ol <s+removethis@s-ol.nu>2021-09-29 10:43:53 +0000
commitd5aa9e42b7c58a734aa6bf7cd3b1c987ca3ee403 (patch)
treed0b9abf8352faf88eac657e7556e25c40d5f5299 /src
parentadd 0xC.pad, 0x2C.board /cfg links (diff)
downloadredirectly-d5aa9e42b7c58a734aa6bf7cd3b1c987ca3ee403.tar.gz
redirectly-d5aa9e42b7c58a734aa6bf7cd3b1c987ca3ee403.zip
add ba/pdf
Diffstat (limited to 'src')
-rw-r--r--src/redirectly/core.clj4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/redirectly/core.clj b/src/redirectly/core.clj
index 55e002c..036e937 100644
--- a/src/redirectly/core.clj
+++ b/src/redirectly/core.clj
@@ -1,7 +1,7 @@
(ns redirectly.core
(:require [carica.core :refer [config clear-config-cache!]]
[ring.util.response :as response]
- [clojure.string :refer [ends-with?]]))
+ [clojure.string :refer [join ends-with?]]))
(def routes (config :routes))
@@ -21,7 +21,7 @@
:url)))
(defmethod url :url [{to :to}] to)
-(defmethod url :mmm [{[_ path] :to}] (str "//mmm.s-ol.nu" path "/"))
+(defmethod url :mmm [{[_ path & rest] :to}] (str "//mmm.s-ol.nu" path "/" (join ":" rest)))
(defn handler [req]
(if-let [route (some #(matches? % (:uri req)) routes)]