This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-12
Channels
- # aleph (8)
- # announcements (9)
- # babashka (15)
- # beginners (91)
- # calva (54)
- # chlorine-clover (3)
- # cider (25)
- # clj-kondo (9)
- # cljfx (4)
- # cljsrn (12)
- # clojure (40)
- # clojure-australia (2)
- # clojure-europe (77)
- # clojure-nl (10)
- # clojure-spec (22)
- # clojure-uk (9)
- # clojurescript (39)
- # conjure (12)
- # cursive (8)
- # datascript (17)
- # datomic (22)
- # emacs (2)
- # expound (6)
- # fulcro (25)
- # kaocha (7)
- # malli (9)
- # meander (5)
- # off-topic (13)
- # pathom (8)
- # pedestal (5)
- # portal (1)
- # rdf (58)
- # re-frame (65)
- # reagent (15)
- # sci (3)
- # shadow-cljs (50)
- # test-check (6)
- # testing (3)
- # tools-deps (1)
- # vim (7)
- # xtdb (10)
Hello everyone, I am working on project based on pedestal and I am having strange issue with routing. My route configuration looks like that:
["/team"
{:post `create-team}
["/users"
{:get `get-users}]
["/:team-id"
{:delete `delete-team
:put `update-team}]]
For some reason, when I try to send GET req to /team/users
it returns 404. If I add get handler for "/team/:team-id" it got called instead of /users
even thou I send request to /team/users
.
Why do those routes conflict? I didn't specify get handler for /:team-id
, so why does it conflict and what can I do about it?@aleh_atsman use the linear search router. See http://pedestal.io/reference/linear-search-router