I would like to have a web request call an APL function with a constant value as part of the argument. This would be used when a single APL function is being called as a common interface point for multiple virtual paths and the constant argument being passed varies depending upon the virtual path being invoked.
For instance, a request to /goodpath/* would call APL function MyFn with an argument of 1, and a request to /badpath/* would call the same function with an argument of 0.
Is there some way to do this without writing a bunch of one-line cover functions to clutter up my workspace?