links icon indicating copy to clipboard operation
links copied to clipboard

Deprecate addRoute-family of functions

Open dhil opened this issue 3 years ago • 1 comments

The addRoute-family of functions are anti-modular and at odds with the long term goal of moving towards separate compilation. In #938 I briefly made an argument for getting rid of them due to the complexity they impose on the implementation of the webserver and evaluator.

Before deprecating them we should discuss and agree on a modular alternative.

dhil avatar Jul 03 '21 14:07 dhil

+1. Perhaps an alternative could be that the argument to startServer is a list describing the routing table. This would be more restrictive than the current approach in which routes can be added dynamically, but this feature is not used much (and probably shouldn't be).

jamescheney avatar Jul 19 '21 13:07 jamescheney