-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
The ScriptsMiddleware(s) should be replaced by endpoints #15629
Comments
The endpoints in the Content module can serve as examples. |
Is this issue still open? I was thinking about picking it up as a first issue if so, I wanted to check first since I do not see any references to OrchardCore.Liquid.ScriptsMiddleWare Forgive my ignorance and thank you for the help. |
You can go for it |
Yep, thank you! Be sure to check out https://docs.orchardcore.net/en/latest/guides/contributing/contributing-code/ first. |
My progress has been slow, I don't think I can complete it in a reasonable amount of time 😅. My sincere apologies. |
Perhaps try to follow the pattern of #15294. This should be more or less copy-pasting to endpoints from the middlewares. |
No need to create a middleware that is impacting the stack size to serve script files. We can register the endpoint routes directly and invoke a delegate.
These methods should also not do string concatenation to render the files. They could precompute the utf8 string (
private static ReadOnlySpan<byte> => "value"u8;
) and callWriteAsync()
for each segment instead.The text was updated successfully, but these errors were encountered: