-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
60 lines (53 loc) · 1.95 KB
/
urls.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env python
#coding:utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from routes.index import IndexHandler
from routes.index import HTTP404Error
from routes.index import SigninHandler
from routes.index import SignoutHandler
from routes.index import AdminHandler
from routes.index import UpdateHandler
from routes.course import AddCourseHandler
from routes.course import DeleteCourseHandler
from routes.course import UndoDeleteCourseHandler
from routes.course import RemoveCourseHandler
from routes.course import DetailHandler
from routes.course import SearchHandler
from routes.course import SearchTipsHandler
from routes.course import ExportHandler
from routes.course import GetCommentHandler
from routes.comment import AddLikeHandler
from routes.comment import AddUnlikeHandler
from routes.comment import CutLikeHandler
from routes.comment import CutUnlikeHandler
from routes.comment import AddCommentHandler
from routes.comment import DeleteCommentHandler
from routes.comment import RemoveCommentHandler
from routes.comment import UndoDeleteCommentHandler
urls = [
(r'/', IndexHandler),
(r'/signout', SignoutHandler),
(r'/signin', SigninHandler),
(r'/add/like', AddLikeHandler),
(r'/add/unlike', AddUnlikeHandler),
(r'/cut/like', CutLikeHandler),
(r'/cut/unlike', CutUnlikeHandler),
(r'/add/course', AddCourseHandler),
(r'/add/comment', AddCommentHandler),
(r'/get/comments', GetCommentHandler),
(r'/delete/comment', DeleteCommentHandler),
(r'/delete/course', DeleteCourseHandler),
(r'/undo/comment', UndoDeleteCommentHandler),
(r'/undo/course', UndoDeleteCourseHandler),
(r'/remove/course', RemoveCourseHandler),
(r'/remove/comment', RemoveCommentHandler),
(r'/update', UpdateHandler),
(r"/export", ExportHandler),
(r'/search', SearchTipsHandler),
(r'/search/(.*)', SearchHandler),
(r'/admin', AdminHandler),
(r'/(.*)/(.*)/(.*)', DetailHandler),
(r'.*', HTTP404Error)
]