We just converted a bunch of routes from compojure to fnhouse, and noticed that they didn't work when deployed to a jboss context (with a route prefix).
As best as I can tell, the request coming in from the jboss machinery has at least three interesting keys:
{...
:context "/my-prefix"
:uri "/my-prefix/and/the/path"
:path-info "/and/the/path"
...}
It seems that compojure was able to use the :path-info key when available, but fnhouse does not.
The ring spec does not mention :path-info or :context, so I can't say how standard these are.
Obviously there are some easy workarounds here, but I was wondering if fnhouse ought to support this somehow.
We just converted a bunch of routes from compojure to fnhouse, and noticed that they didn't work when deployed to a jboss context (with a route prefix).
As best as I can tell, the request coming in from the jboss machinery has at least three interesting keys:
{... :context "/my-prefix" :uri "/my-prefix/and/the/path" :path-info "/and/the/path" ...}It seems that compojure was able to use the
:path-infokey when available, but fnhouse does not.The ring spec does not mention
:path-infoor:context, so I can't say how standard these are.Obviously there are some easy workarounds here, but I was wondering if fnhouse ought to support this somehow.