Fixed unable to resolve route when using subfolder. Closes #29

Signed-off-by: crynobone <crynobone@gmail.com>