setupRouter method

void setupRouter (Router router)

Callback for implementing this instances's routing table.

Routes should only be added to router in this method. This method will execute prior to willOpen being called, so any properties this instance needs to handle route setup must be set in this instance's constructor. The argument to this method is the same instance as the property RequestSink.router.


void setupRouter(Router router);