Skip to content

Serve static file on all routes and then invoke YARP for matched route #2402

Closed Answered by MihaZupan
VISSSMB asked this question in Q&A
Discussion options

You must be logged in to vote

I have an index.html where I make a fetch of the same path such that the YARP is invoked and the response is captured in index.html.
Is there any way to achieve this same functionality for all the route patterns configured in YARP settings?

I'm afraid I don't understand what you are trying to achieve. Can you try explaining in more detail / with an example?
Do you want UseStaticFiles to not serve some files, and instead let YARP handle the request?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VISSSMB
Comment options

Answer selected by karelz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants