New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASK, how to exclude minify for spesific routes? #200
Comments
I don't think it's possible. |
I hope there is a feature for this. Right now I just modify to spesific routes directly. Not hard but seems not clean to my routes. |
Would you like to send a Pull Request to address this issue? Remember to add unit tests. |
I could watch this issue if no one else intends to. I have just an advice to ask you: Is there a way to obtain current path from fastify object in order to access it from getTemplate function? Otherwise I could pass it to the function from the caller together with callback and file, What do you think? Thanks |
req.context.url should have the route definition (console.log req.context to be sure). req.url have the current path. |
thank you very much, then I will pass the context of the request to the function from the caller. I'll do a MR to confirm soon |
This is not an issue, I just don't know how to exclude minifier for spesific routes?
Is this possible? how?
Thank you.
The text was updated successfully, but these errors were encountered: