-
Notifications
You must be signed in to change notification settings - Fork 2
/
url.py
executable file
·33 lines (29 loc) · 996 Bytes
/
url.py
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
#!/usr/bin/env python
#coding:utf-8
"""
Author: pirogue --<p1r06u3@gmail.com>
Purpose: URL路由配置文件
Created: 2017/4/8
Site: http://pirogue.org
"""
from handlers import login, hello
from handlers import logcollection, paginationlog, hello, email, index, chart, whiteiplist, whiteport, host
import unittest
url = [
# LoginHandler url
(r"/", index.IndexHandler),
(r"/auth/*", login.AuthHandler),
(r"/log/*", logcollection.ReceiveJsonHandler),
(r"/log/list/*", paginationlog.GetlistJsonHandler),
(r"/mail/*", email.EmailModifyHandler),
(r"/chart/*", chart.ChartHandler),
(r"/whiteiplist/", whiteiplist.WhiteiplistHandler),
(r"/whiteport/", whiteport.WhiteportHandler),
(r"/host/*", host.HostHandler),
(r"/gethost/*", host.GetHostHandler),
(r"/hello/*", hello.HelloHandler),
(r".*", index.IndexHandler)
# (r"/logout", login.LogoutHandler),
]
if __name__ == '__main__':
unittest.main()