reitit

Panel 2024-04-19T08:31:17.199829Z

How could I get muuntaja to fill up available format in swagger ? I can curl for edn / transit ect.. but only json is available in the dropdown

henrik 2024-04-19T08:49:08.149229Z

I’m unsure how to get proper trailing slash redirection. The following gives ::no-match:

(def test-routes
  [["" {:get  {:handler identity}
        :name :main}]])


(def test-router
  (reitit-ring/ring-handler
    (reitit-ring/router test-routes)
    (reitit-ring/routes
      (reitit-ring/redirect-trailing-slash-handler {:method :strip}))))


(or (test-router {:request-method :get, :uri "/"}) ::no-match)
What have I misconfigured?