(ns spam-and-eggs.http.app
  (:require [compojure.core :refer :all]
            [compojure.route :as route]
            [spam-and-eggs.http.api :as api]
            [spam-and-eggs.http.html :as html]))

(def handler (routes html/handler
                     api/handler
                     (route/not-found "Page not found")))

(ns spam-and-eggs.http.app
  (:require [compojure.core :refer :all]
            [compojure.route :as route]
            [spam-and-eggs.http.api :as api]
            [spam-and-eggs.http.html :as html]))

(def handler (routes #'html/handler
                     #'api/handler
                     (route/not-found "Page not found")))

Use handler vars for routing
Use handler vars for routing

iantruslove/spam-and-eggs