APItools / monitor

Track, transform and analyze the traffic between your app and the APIs you use.
https://www.apitools.com
MIT License
140 stars 23 forks source link

Add keys middleware code is the test not the middleware code #45

Closed picsoung closed 9 years ago

picsoung commented 9 years ago

When you add from the list of suggested middleware the Add Keys middleware, it gives you the code of the test instead of the code of the actual middleware.

apitools_traffic_monitor

picsoung commented 9 years ago

also reported by another user :)

ping @kikito

kikito commented 9 years ago

Hi @picsoung,

This is fixed now. I have tested it in production.

The problem was a typo in the apitools.json file defining the add keys middleware - instead of having a "spec" entry, it was named "files". So the code of the spec was treated like the code of the middleware.

Here's the change which fixed the issue (after telling brain to reload the middlewares from github)

https://github.com/APItools/middleware/commit/159ec383a9255192aea4ace822e8e9bc3c5948cc