added support of '/foo/{foo}'-like routes