Remove URL handlers from config files, and from the default config file. Add a stub to the migration notes that URLHandlers are now done as Plack Middleware.
This commit is contained in:
parent
e71e95544f
commit
b640216437
3 changed files with 12 additions and 16 deletions
|
|
@ -275,3 +275,7 @@ to be called.
|
|||
Inventory adjust is also no longer done when an object is created from scratch. You will need to call onAdjustQuantityInCart
|
||||
manually.
|
||||
|
||||
WebGUI::URL
|
||||
==========================
|
||||
In WebGUI 8, URL handlers are now done as Plack middleware. See WebGUI::Middleware::Snoop and WebGUI::Middleware::WGAccess
|
||||
for examples.
|
||||
|
|
|
|||
|
|
@ -974,22 +974,6 @@
|
|||
|
||||
"runOnLogout" : "",
|
||||
|
||||
# URL handlers are used to associate functionality with a URL via a regular expression.
|
||||
|
||||
"urlHandlers" : [
|
||||
{ "^/extras" : "WebGUI::URL::PassThru" },
|
||||
# { "^/icons" : "WebGUI::URL::PassThru" },
|
||||
# { "^/documentation/pdf" : "WebGUI::URL::PassThru" },
|
||||
# { "^/my-custom-application$" : "WebGUI::URL::PassThru" },
|
||||
# { "^/server-status$" : "WebGUI::URL::PassThru" },
|
||||
# { "^/perl-status$" : "WebGUI::URL::PassThru" },
|
||||
{ "^/uploads/dictionaries" : "WebGUI::URL::Unauthorized" },
|
||||
{ "^/uploads" : "WebGUI::URL::Uploads" },
|
||||
{ "^/\\*give-credit-where-credit-is-due\\*$" : "WebGUI::URL::Credits" },
|
||||
{ "^/abcdefghijklmnopqrstuvwxyz$" : "WebGUI::URL::Snoop" },
|
||||
{ ".*" : "WebGUI::URL::Content" }
|
||||
],
|
||||
|
||||
# Content handlers are used to produce content from the content URL handler.
|
||||
# Note, these handlers are processed in the order listed. Do not change
|
||||
# unless you know what you're doing.
|
||||
|
|
|
|||
8
share/upgrades/7.10.4-8.0.0/removeURLHandlers.pl
Normal file
8
share/upgrades/7.10.4-8.0.0/removeURLHandlers.pl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
use WebGUI::Upgrade::Script;
|
||||
|
||||
start_step "Removing URL Handlers from WebGUI Configuration files";
|
||||
|
||||
session->config->delete( 'urlHandlers' );
|
||||
|
||||
done;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue