Reputation: 173
I'd like to use cpstats (http://www.cherrypy.org/browser/trunk/py3/cherrypy/lib/cpstats.py) in an application already entirely based on RoutesDispatcher. How can I either:
Upvotes: 0
Views: 413
Reputation: 14559
You can write in your config:
[/stats]
request.dispatch = cherrypy.dispatch.Dispatcher()
...to use the default dispatcher for that URI.
Upvotes: 1