;; Market app defpage declarations.
;;
;; all-markets-index: / — global view across all pages
;; page-markets-index: / (on page_markets bp, mounted at /<slug>)
;; page-admin: / (on page_admin bp, mounted at /<slug>/admin)
;; market-home: / (on browse bp, mounted at /<page_slug>/<market_slug>)
;; market-admin: / (on admin bp, mounted at /<page_slug>/<market_slug>/admin)

(defpage all-markets-index
  :path "/"
  :auth :public
  :layout :root
  :content (all-markets-content))

(defpage page-markets-index
  :path "/"
  :auth :public
  :layout :post
  :content (page-markets-content))

(defpage page-admin
  :path "/"
  :auth :admin
  :layout (:post-admin :selected "markets")
  :content (page-admin-content))

(defpage market-home
  :path "/"
  :auth :public
  :layout :market
  :content (market-home-content))

(defpage market-admin
  :path "/"
  :auth :admin
  :layout (:market-admin :selected "markets")
  :content (market-admin-content))
