Created
February 14, 2021 12:26
-
-
Save Cartmanishere/e92c6ab8cfa95a0a8dd912f5e3e088c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn http-loader | |
[base-url-prefix] | |
(doto (proxy | |
[URLTemplateLoader] [] | |
(^String resolve [^String path] | |
(str (proxy-super getPrefix) | |
path | |
(.getSuffix this))) | |
(^URL getResource [^String location] | |
(URL. location))) | |
(.setPrefix base-url-prefix))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment