def add_handler()

in tsqa/endpoint.py [0:0]


    def add_handler(self, path, func):
        '''
        Add a new handler attached to a specific path
        '''
        path = self.normalize_path(path)
        if path in self._handlers:
            raise Exception()
        self._handlers[path] = func