Questions tagged [clout]

5 questions
2
votes
1 answer

compojure route with multiple parameters

Is it possible to define a compojure route that contains multiple parameters? i.e: (def my-routes (routes (GET "/something/:param1/:param2" [] my-handler)))
aav
  • 2,514
  • 1
  • 19
  • 27
1
vote
2 answers

What characters are permitted for a slug in noir?

I have a Clojure service that I'm exposing via REST. I have a page defined as: (defpage "/package_versions/:id" {:keys [id]} (do (println "ID: " id) (if-let [pv (pv/fetch-one (db/keyspace) id)] (response/json pv) …
MrEvil
  • 7,785
  • 7
  • 36
  • 36
1
vote
1 answer

Finding Matched Path in Clojure Web Service

I hope I can explain this in such a way that it makes sense! I'm using Liberator to prototype some web services that I need to expose to clients and have route(s) defined like so: (defroutes fish (context "/fish" [] (ANY…
peter
  • 177
  • 1
  • 10
0
votes
1 answer

Unable to sent email in java application deployed in azure

we have a java application which we have deployed on the azure cloud. The email sent functionality is working fine before the deployment on azure. But when we deployed the application on azure the functionality is not working. We have done two step…
0
votes
1 answer

Wildcarding Compojure Routes gives a warning

The following route works as I would like - i.e. match /pref/ and bind * to the rest of the path. (GET "/pref/*" [*] (do (println *) (resp (str "Hello " *)))) However there's a complaint to stdout: WARNING: * should not be used as a route…
pete23
  • 2,204
  • 23
  • 28