check routes in compile time