Fork me on GitHub
#lambdaisland
<
2020-07-22
>
plexus07:07:43

I guess it's really time to take those Luminus episodes offline. They are of much lower quality than all the rest, and it seems now they are also getting severely outdated...

plexus07:07:56

(def app
  (ring/ring-handler
   (ring/router
    ["/:slug" {:get {:handler (fn [{{slug :slug} :path-params}]
                                {:status 200
                                 :body slug})}}]
    )))

(app {:request-method :get
      :uri "/foo-bar"})

theequalizer7312:07:16

Thank you, dont take them offline pls, maybe they need just and update :)

plexus14:07:02

I've been wanting to pull them off for a long time, often people will start there because they're the first episodes, but they're just really bad... Also given that Luminus seems to change so drastically does not give me much desire to make content for it. Most of the videos are still fully relevant a few years later because Clojure libs tend to be stable like that. Might be better to just have episodes about the libraries that Luminus uses.

3
plexus07:07:18

but your problem is probably that reitit complains that your routes conflict, you might want to use a different url structure like /post/:slug