Skip to content

Is there any wrong with my template /{file}.{ext}? #1938

Answered by raman-m
tle5 asked this question in Q&A
Discussion options

You must be logged in to vote

@tle5

But it doesn't work. Is there any wrong with my template?

Yes, it is wrong!
You wrote incorrect templates, and {all} is not presented in downstream template!
You need to define the route like this 👇

"UpstreamPathTemplate": "/app1/{version}/{z}/{x}/{file}",
"DownstreamPathTemplate": "/{version}/{z}/{x}/{file}"

Hope it helps!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Routing Ocelot feature: Routing
3 participants
Converted from issue

This discussion was converted from issue #888 on January 21, 2024 10:37.