mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-13 11:16:50 +00:00
Added support for redirection and 404 hosts
This commit is contained in:
@@ -26,13 +26,25 @@ module.exports = Mn.View.extend({
|
||||
},
|
||||
|
||||
ui: {
|
||||
'create': 'th button'
|
||||
new_proxy: 'th .new-proxy',
|
||||
new_redirection: 'th .new-redirection',
|
||||
new_404: 'th .new-404'
|
||||
},
|
||||
|
||||
events: {
|
||||
'click @ui.create': function (e) {
|
||||
'click @ui.new_proxy': function (e) {
|
||||
e.preventDefault();
|
||||
Controller.showHostForm(new HostModel.Model);
|
||||
Controller.showProxyHostForm(new HostModel.Model);
|
||||
},
|
||||
|
||||
'click @ui.new_redirection': function (e) {
|
||||
e.preventDefault();
|
||||
Controller.showRedirectionHostForm(new HostModel.Model);
|
||||
},
|
||||
|
||||
'click @ui.new_404': function (e) {
|
||||
e.preventDefault();
|
||||
Controller.show404HostForm(new HostModel.Model);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user