is there a way i can accept a json body in any format ? something like
:parameters {:body (s/keys)}
If using malli, you could have any?
, perhaps.
any?
should work with spec too
We've deprecated the docs at https://metosin.github.io/reitit/ in favor of the docs at cljdoc. I tried to keep the images around as-is and set up redirects so that hopefully old links still work!
(The docs were the same, there were just two copies hosted at different places)
that's great - less confusing 🙂
cheers i will give any? a try 🙂
I had a chance to work on this question further: https://clojurians.slack.com/archives/C7YF1SBT3/p1595698484361900
The solution I currently have is borrowed from https://github.com/metosin/reitit/blob/9729a7424ee024c6e6c995f236531dfb2f93ce66/examples/frontend-controllers/src/backend/server.clj#L6 where my router uses https://gist.github.com/athomasoriginal/14c6cfa1500bc1ab1a90a98b9d7217a0#file-reitit-backend-spa-cljs-L39. If this solution is fine, my question is now:
Is the purpose of create-resource-handler
not so much as a spa fallback + static resource shortcut, but just as a quick way to make static resources (example: public/css/*
or public/cljs-out/*
available without having to specify each route individually? :thinking_face:
My original thought was that it would look for static files
and if none found just return the public/index.html
file.