mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-08 18:59:47 +00:00
change uri /kill to /ws/kill
This commit is contained in:
@@ -494,7 +494,7 @@ def main():
|
||||
[
|
||||
(r'/ws/monitor', MonitorHandler),
|
||||
(r'/ws/terminal', WebTerminalHandler),
|
||||
(r'/kill', WebTerminalKillHandler),
|
||||
(r'/ws/kill', WebTerminalKillHandler),
|
||||
(r'/ws/exec', ExecHandler),
|
||||
(r"/static/(.*)", tornado.web.StaticFileHandler,
|
||||
dict(path=os.path.join(os.path.dirname(__file__), "static"))),
|
||||
|
@@ -215,7 +215,7 @@
|
||||
|
||||
function cut(num, login_type){
|
||||
var protocol = window.location.protocol;
|
||||
var endpoint = protocol + '//' + document.URL.match(RegExp('//(.*?)/'))[1] + '/kill';
|
||||
var endpoint = protocol + '//' + document.URL.match(RegExp('//(.*?)/'))[1] + '/ws/kill';
|
||||
if (login_type=='web'){
|
||||
var g_url = endpoint + '?id=' + num;
|
||||
console.log(g_url);
|
||||
|
Reference in New Issue
Block a user