This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-09
Channels
- # announcements (4)
- # babashka (2)
- # beginners (8)
- # calva (2)
- # chlorine-clover (7)
- # cider (3)
- # clj-kondo (1)
- # cljs-dev (2)
- # clojure (21)
- # clojure-dev (2)
- # clojure-europe (5)
- # clojure-spec (17)
- # clojuredesign-podcast (7)
- # clojurescript (8)
- # conjure (4)
- # cursive (3)
- # datomic (1)
- # defnpodcast (5)
- # esprit (51)
- # fulcro (7)
- # jobs (1)
- # luminus (3)
- # news-and-articles (1)
- # off-topic (2)
- # other-lisps (3)
- # pathom (8)
- # portal (3)
- # re-frame (3)
- # re-ops (1)
- # shadow-cljs (26)
- # testing (15)
- # tools-deps (34)
- # xtdb (1)
hey everyone i am using luminus for the first time and i cant seem to have the server return the queried data
routes
(defn job-routes
[]
["/job"
{:middleware [middleware/wrap-csrf
middleware/wrap-formats]}
["/search" {:get job-service/search}]
["/:id" {:get job-service/find-by-id}]])
service
(defn find-by-id
[request]
(let [id (-> request :path-params :id)]
((db/get-job {:id id}))))
when i print db/get-job
the map is printed out, however when i query this endpoint via Postman it just returned 1