This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-21
Channels
- # announcements (5)
- # babashka (9)
- # beginners (84)
- # calva (47)
- # clara (3)
- # clj-kondo (2)
- # clojars (8)
- # clojure-australia (3)
- # clojure-europe (3)
- # clojure-spec (1)
- # clojurescript (5)
- # conjure (6)
- # cursive (7)
- # datahike (3)
- # events (2)
- # helix (1)
- # lsp (217)
- # luminus (4)
- # malli (18)
- # meander (23)
- # membrane (12)
- # off-topic (26)
- # pathom (12)
- # reagent (44)
- # releases (1)
- # rewrite-clj (2)
- # shadow-cljs (19)
- # sql (17)
- # xtdb (6)
So I’m trying to use luminus for REST services called by some internal JS eventually ClojureScript. The routes were much easier for REST with just compojure IMO but I wanted to use a full blown web framework. What should I be doing for my REST routes?
I use the +swagger https://luminusweb.com/docs/profiles.html for the Luminus lein template and then adapt the examples in the generated boilerplate. If you use that profile and look in routes/services.clj you can see a /math/plus example route that reads x and y values from query parameters in a GET request.