fix(router): resolve golang template scoping issue