ring

zendevil.eth 2022-03-02T19:16:29.657299Z

hi, for some reason none of my post requests are working. Is there a middleware that I need to install?:

(defn home-routes []
  [ ""
   {:middleware [middleware/wrap-csrf
                 middleware/wrap-formats
                 coercion/coerce-request-middleware
                 ]}
   ["/" {:get home-page}]
   ["/about" {:get about-page}]
   ["/api/login" {:coercion spec/coercion
                  :post login-handler
                  ;;:parameters {:query ::login-params}
                  }]])
when I change the :post to get the request works but not when I have post

2022-03-02T21:03:10.908609Z

what do you mean not working?

2022-03-02T21:05:01.255339Z

whatever you are see there is not strictly speaking ring, but whatever routing library you are using (I can't tell from just that snippet, I've haven't seen middleware attached like that before)

2022-03-02T21:08:21.651249Z

I guess it is reitit? the middleware thing just threw me