remove org.webjars
This commit is contained in:
parent
2b401ee296
commit
de7624072d
|
@ -26,12 +26,6 @@
|
|||
[crypto-random "1.2.1"]
|
||||
[buddy/buddy-sign "3.4.333"]
|
||||
#_[com.draines/postal "2.0.4"]
|
||||
;; graphiql ;; TODO not required for productive build
|
||||
[ring-webjars "0.2.0" :exclusions [org.webjars/webjars-locator]]
|
||||
[org.webjars/webjars-locator "0.45"]
|
||||
[org.webjars/graphiql "0.11.11"]
|
||||
[org.webjars.npm/react "18.0.0-rc.1" :exclusions [org.webjars.npm/loose-envify org.webjars.npm/js-tokens org.webjars.npm/object-assign]]
|
||||
[org.webjars.npm/react-dom "17.0.2" :exclusions [org.webjars.npm/loose-envify org.webjars.npm/js-tokens org.webjars.npm/object-assign org.webjars.npm/scheduler]]
|
||||
;; logging
|
||||
[org.clojure/tools.logging "1.2.4"]
|
||||
[org.slf4j/slf4j-api "2.0.0-alpha6"]
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
(ns beherbergung.webserver.middleware
|
||||
(:require [beherbergung.config.state :refer [env]]
|
||||
[ring.middleware.resource :refer [wrap-resource]]
|
||||
[ring.middleware.webjars :refer [wrap-webjars]]
|
||||
[ring.middleware.json :refer [wrap-json-response wrap-json-body]]
|
||||
[ring.middleware.content-type :refer [wrap-content-type]]
|
||||
[ring.middleware.not-modified :refer [wrap-not-modified]]
|
||||
|
@ -29,7 +28,7 @@
|
|||
"Add graphqli using org.webjars/graphiql and resources/public/graphiql/index.html"
|
||||
[handler]
|
||||
(-> handler
|
||||
(wrap-webjars)
|
||||
#_ (wrap-webjars) ;; we will provide resources from npm
|
||||
(wrap-resource "public")))
|
||||
|
||||
(defn wrap-graphql
|
||||
|
|
Loading…
Reference in New Issue