Skip to content

Should fnhouse look at the :path-info key? #32

@gfredericks

Description

@gfredericks

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions