♻️ Add missing svgparse http handler.

This commit is contained in:
Andrey Antukh 2021-01-05 13:49:39 +01:00 committed by Alonso Torres
parent 33c8743215
commit f83c8d4523
3 changed files with 40 additions and 4 deletions

View file

@ -88,8 +88,9 @@
(rr/create-resource-handler {:path "/"})
(rr/create-default-handler))))
(defn- create-router
[{:keys [session rpc google-auth gitlab-auth metrics ldap-auth storage] :as cfg}]
[{:keys [session rpc google-auth gitlab-auth metrics ldap-auth storage svgparse] :as cfg}]
(rr/router
[["/metrics" {:get (:handler metrics)}]
@ -107,7 +108,7 @@
[middleware/keyword-params]
[middleware/cookies]]}
;; ["/svg" {:post handlers/parse-svg}]
["/svg" {:post svgparse}]
["/oauth"
["/google" {:post (:auth-handler google-auth)}]