             [swanson.views.layout :as layout]
             [swanson.views.tables :as tables]
             [hiccup.element :refer [javascript-tag]]))
-
-(defn by-week []
-  (utils/json-response (db/get-transactions-by-week)))
 
 (defresource post-transaction []
   :allowed-methods [:post]

                      (utils/json-response
                        {:error (str "Transaction not found for id " id)})))

(defn transactions []
  (let [default "25"
        l (get-in ctx [:request :params :limit] default)
        limit (utils/parse-number l)]
    (utils/json-response (db/get-all-transactions limit))))

(defn category [category-id]
  (let [result (db/category-monhly (Integer/parseInt category-id))]
    (utils/json-response result)))

(defn categories-ytd []

    (utils/json-response result)))

(defn months []
  (let [result (db/last-n-months (:months default-params))]
    (utils/json-response result)))

(defn categories-last-month []
