                        ["/api/stores" :post
                         (conj intercept/common-interceptors (partial http-post-store mqtt)) :route-name :http-post-store]
                        ["/api/stores/:id" :delete
-                        (conj intercept/common-interceptors (partial http-delete-store mqtt)) :route-name :http-delete-store]})
+                        (conj intercept/common-interceptors (partial http-delete-store mqtt)) :route-name :http-delete-store]
+                       ["/api/wfs/getCapabilities" :get
+                        (conj intercept/common-interceptors `http-get-capabilities)]})
 
 (defrecord StoreComponent [mqtt trigger]
   component/Lifecycle

            [spacon.components.mqtt :as mqttapi]
            [spacon.entity.scmessage :as scm]
            [clojure.data.json :as json]
            [overtone.at-at :refer [every,mk-pool]])
  (:import (com.boundlessgeo.spatialconnect.schema SCCommand)))

(defn http-get [context]

(defn http-put-store [mqtt context]
  (if-let [d (storemodel/update (get-in context [:path-params :id]) (:json-params context))]
    (do (mqttapi/publish-scmessage mqtt "/config/update"
                                   (scm/map->SCMessage
                                    {:action (.value SCCommand/CONFIG_UPDATE_STORE)
                                     :payload d}))
        (response/ok "success"))
    (response/error "Error updating")))

(defn http-post-store [mqtt context]
  (if-let [d (storemodel/create (:json-params context))]
    (do (mqttapi/publish-scmessage mqtt "/config/update"
                                   (scm/map->SCMessage {:action (.value SCCommand/CONFIG_ADD_STORE)
                                                        :payload d}))
        (response/ok d))
    (response/error "Error creating")))

(defn http-delete-store [mqtt context]
