-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathurl.py
More file actions
37 lines (34 loc) · 1.28 KB
/
url.py
File metadata and controls
37 lines (34 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python
# encoding:utf-8
"""
Watch_Dogs
路由配置
"""
from handlers import *
from handlers.user import *
from handlers.host import *
from handlers.index import *
from handlers.process import *
from handlers.alert import *
from handlers.manage import *
# 路由配置
HANDLERS = [
(r'/v', TestHandler), # version
(r'/', IndexHandler), # 首页
(r'/login', AuthenticationHandler), # 登录,注销
(r'/user', UserHandler), # 注册,更新
(r'/user/admin', AdminHandler), # 管理
(r'/index', IndexDataHandler), # 首页资源
(r'/host', HostHandler), # 主机
(r'/host/([0-9]+)', HostInfoHandler), # 主机信息
(r'/process', ProcessHandler), # 进程
(r'/process/([0-9]+)', ProcessInfoHandler), # 进程信息
(r'/log', ProcessLogHandler), # 进程日志
(r'/alert', AlertHandler), # 监控告警
(r'/manage/process', ProcessManage), # 进程管理
(r'/host/all', AllHostHandler), # 某用户所有关联主机信息
(r'/process/all', AllProcessHandler), # 某主机所有进程信息
(r'/client/Watch_Dogs-Client.tar.gz', ClientDownloadHandler), # 远程客户端下载链接
(r'/client/ClientSetup.sh', ClientScriptDownloadHandler), # 远程客户端部署脚本
(r'.*', NotFoundHandler) # 404
]