fix nested resource routing

fixes #23
Merge branch 'master' of https://github.com/H0201030/remotely-observed-treatment