 (ns open-company.api.entry
   (:require [compojure.core :refer (defroutes GET OPTIONS)]
-            [liberator.core :refer (defresource by-method)]
+            [liberator.core :refer (defresource)]
             [open-company.api.common :as common]
             [open-company.resources.company :as company-res]
             [open-company.representations.common :as common-rep]


(defroutes entry-routes
  (OPTIONS "/" [] (entry-point))
  (GET "/" [] (entry-point)))

  :handle-not-acceptable (fn [_] (common/only-accept 406 "application/json"))
  :handle-unsupported-media-type (fn [_] (common/only-accept 415 "application/json"))

  :handle-ok render-entry

  :handle-options (common/options-response [:options :get]))

