fixed a bug for the catch-all part of the API.

The regular expression was invalid. The logic now adds hooks for all of our API methods and skips ANYTHING else.