This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-12
Channels
- # aleph (3)
- # announcements (15)
- # architecture (6)
- # babashka (35)
- # babashka-sci-dev (10)
- # biff (5)
- # calva (9)
- # cherry (1)
- # cider (44)
- # clj-kondo (31)
- # cljfx (1)
- # clojure (108)
- # clojure-europe (32)
- # clojure-norway (12)
- # clojurescript (15)
- # conjure (3)
- # cursive (8)
- # datahike (1)
- # datalevin (19)
- # datascript (1)
- # datomic (59)
- # emacs (4)
- # graphql (3)
- # jobs (1)
- # luminus (6)
- # meander (9)
- # membrane (45)
- # nbb (67)
- # off-topic (16)
- # portal (3)
- # remote-jobs (1)
- # scittle (8)
- # shadow-cljs (46)
- # test-check (7)
- # tools-deps (5)
- # vim (63)
- # web-security (11)
- # xtdb (15)
Minor observation about :api-routes
handling…
Over my all features
value, the default routes
def produces a :api-routes
sub-structure like this:
(nil nil nil nil nil [["/echo" {:get #function[example.api/echo]}]])
Where /echo
is my one API route and those leading nil
s are because most of my feat
namespaces don’t have :api-routes
.
But the handler
doesn’t seem to like those nil
s - it 404
s when given a /echo
When I filter-out those nil
s, to get:
([["/echo" {:get #function[example.api/echo]}]])
…the handler works fine for the /echo
route.
Anyway, this posting is just in case it might help someone else who stumbles across this problem. 😃oops 😬 I'll take a look at that and probably update the template
…t’was just a minor thing. Your design of Biff has made it easy to slide in a router that supports Swagger annotated API routes, with param coercion etc. - It’s been a really handy foundation on which to quickly prototype my project’s small web service. Cheers.
Glad to hear!
I just pushed a commit to fix this in the template project by the way: https://github.com/jacobobryant/biff/commit/daf5c98b6ae1e014b66624aef029e2d894d363ce. (FYI for anyone else with an existing Biff project, you'll need to apply those changes manually. I'll make a note about this in the next release)
I just pushed a commit to fix this in the template project by the way: https://github.com/jacobobryant/biff/commit/daf5c98b6ae1e014b66624aef029e2d894d363ce. (FYI for anyone else with an existing Biff project, you'll need to apply those changes manually. I'll make a note about this in the next release)