Kazoo 2561

But you don't use ?ROOT for anything in `validate/3`; you call `summary/1` or `create/1`. I don't see a need to have those clauses there in `validate/3`, plus it would break if you wanted to support a second path token on your URIs (`/sms/incoming/unread` perhaps).

So at a minimum, I'd say rename `validate/3` to `validate_path/3`. But I'd also suggest using two functions, one for validating `/sms` requests (`validate_root/2` in my previous comment) and one for validating `/sms/{DIRECTION}` requests (maybe calling it `validate_direction/3`). Does that work?