(ns made-merits.routes.leaderboard
  (:require [made-merits.layout :as layout]
            [compojure.core :refer [defroutes GET POST]]
            [ring.util.http-response :as response]
            [made-merits.db.core :as db]
            [clojure.java.io :as io]))

(defn leaderboard []
  (layout/render
    "leaderboard.html" {:meritted_users (db/get-meritted-users)}))

(defroutes leaderboard-routes
  (GET "/" [] (leaderboard)))

(ns made-merits.routes.leaderboard
  (:require [made-merits.layout :as layout]
            [compojure.core :refer [defroutes GET POST]]
            [ring.util.http-response :as response]
            [made-merits.service.winner-calculator :as winner-calculator]
            [made-merits.db.core :as db]
            [clojure.java.io :as io]))

(defn meritted-users
  []
  (winner-calculator/with-winner (db/get-meritted-users)))

(defn leaderboard []
  (layout/render
    "leaderboard.html" {:meritted_users (meritted-users)}))

(defroutes leaderboard-routes
  (GET "/" [] (leaderboard)))

Use new service to identify the king.
Use new service to identify the king.

emileswarts/made-merits,emileswarts/made-merits