diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-01-04 23:14:15 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2022-01-04 23:14:15 +0000 |
| commit | d93942ca5f507d19f06190411631f65304f214b1 (patch) | |
| tree | 0026f839fdd9fae4ce33937ce61de7c923760556 | |
| parent | add ba/pdf (diff) | |
| download | redirectly-d93942ca5f507d19f06190411631f65304f214b1.tar.gz redirectly-d93942ca5f507d19f06190411631f65304f214b1.zip | |
add iso-kb-explorer
| -rw-r--r-- | resources/config.edn | 5 | ||||
| -rw-r--r-- | src/redirectly/core.clj | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/resources/config.edn b/resources/config.edn index 68f9c81..fe03596 100644 --- a/resources/config.edn +++ b/resources/config.edn @@ -26,7 +26,7 @@ "vcvmods/doc" {:to "https://github.com/s-ol/vcvmods/blob/master/README.md"} :redirectly {:to [:mmm "/blog/why_redirectly"]} - "redirectly/src" {:to "https://git.s-ol.nu/redirectly/"} + "redirectly/src" {:to [:klaus "redirectly"]} :alive {:to "https://alive.s-ol.nu/stable/"} "alive/src" {:to "https://github.com/s-ol/alive"} @@ -36,6 +36,9 @@ "0xC.pad/cfg" {:to "https://qmk.s-ol.nu/#/s_ol/0xc_pad/LAYOUT"} :0x2C.board {:to "https://fabacademy.org/2020/labs/opendot/students/sol-bekic/projects/keyboard/"} "0x2C.board/cfg" {:to "https://qmk.s-ol.nu/#/s_ol/0x2c_board/LAYOUT"} + + :isokbexp {:to "https://isokb.s-ol.nu"} + "isokbexp/src" {:to [:klaus "isomorphic-kb-explorer"]} ; legacy blog posts :blog {:to [:mmm "/blog"]} 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)] |
