add url pattern dispatching to application

def add_url(self, name: str, pattern: str, application: Callable) -> None:
        """ add url pattern dispatching to application"""
        self.urlmapper.add(name, self.prefix + pattern)
        self.register_app(name, application)