Open
Description
Currently...
two multibindings for each environment (dev, prod) to bind WebActionEntry to {WebProxyAction|StaticResourceAction} and {WebProxyEntry|StaticResourceEntry} to input parameter {upstream server url | resource path}
Development
multibind<WebActionEntry>().toInstance(WebActionEntry<WebProxyAction>("/_admin/"))
multibind<WebProxyEntry>().toInstance(WebProxyEntry("/_admin/", "http://localhost:3100/"))
Production
multibind<WebActionEntry>().toInstance(WebActionEntry<StaticResourceAction>("/_admin/"))
multibind<StaticResourceEntry>().toInstance(StaticResourceEntry("/_admin/", "classpath:/web/_admin/"))
Todo
Change this so only one Web Action Entry binding per environment. Construct the action in the WebActionEntry binding with the input parameters. Thus:
- simpler multibindings
- no more "Search for matching entry" in each action since each will be constructed with the exact matching binding
- enforce the current idiom that WebActionEntry and {WebProxyEntry|StaticResourceEntry} have the same path prefix
Potentially look something like this:
multibind<WebActionEntry>().toInstance(WebActionEntry("/_admin/", StaticResourceAction("classpath:/web/_tab/dashboard/")))