             [stefon.core :as stefon]
             [taoensso.sente :as sente]))
 
-;; TODO: find a way to restart sensa
-(defonce sensa-fns (atom {}))
+;; TODO: find a way to restart senta
+(defonce senta-state (atom {}))
 
 (defn log-request [req resp ms]
   (when-not (re-find #"^/cljs" (:uri req))

(ns pc.server
  (:require [clojure.tools.logging :as log]
            [clojure.tools.reader.edn :as edn]
            [clj-time.core :as time]
            [compojure.core :refer (defroutes routes GET POST ANY)]

          (log/error e)))
      resp)))

(defn app [senta-state]
  (routes
   (POST "/api/entity-ids" request
         (datomic/entity-id-request (-> request :body slurp edn/read-string :count)))
