Update controller.php

Not sure why snippets is mapped to snippetID twice
Merge pull request #2 from ba205/patch-1

Update controller.php