-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CfW: Allow web resource routing configuration (#3852)
This commit changes the default resource routing behaviour: - It used to search for a file in the root directory (on a domain level) - After this change, it will search for a file relatively to the current url segment Besides that, we add a small configuration to let developers change the default behaviour when needed. ___ usage examples: ```kotlin // 1 configureWebResources { setResourceFactory { path -> urlResource("/myApp1/resources/$path") } } // 2 configureWebResources { setResourcelFactory { path -> urlResource("https://mycdn.com/myApp1/res/$path") } } ``` ___ This will fix #3413 (currently it bothers our users) (cherry picked from commit 7380229)
- Loading branch information
Showing
4 changed files
with
95 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters