apply code to both routes
Merge pull request #13 from CirrusMio/undup

apply code to both routes