From d5aa9e42b7c58a734aa6bf7cd3b1c987ca3ee403 Mon Sep 17 00:00:00 2001 From: s-ol Date: Wed, 29 Sep 2021 12:35:53 +0200 Subject: add ba/pdf --- src/redirectly/core.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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)] -- cgit v1.2.3