lambdaisland

plexus 2020-07-22T07:39:43.160900Z

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...

plexus 2020-07-22T07:45:56.161100Z

(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"})

plexus 2020-07-22T07:46:18.161500Z

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

omendozar 2020-07-22T12:26:16.162300Z

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

plexus 2020-07-22T14:35:02.162500Z

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.

1