forked from leanote/leanote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes
143 lines (113 loc) · 5.12 KB
/
routes
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
# module:testrunner
# Home is My Blog
Get / Index.Default
GET /note Note.Index
# leanote home
GET /index Index.Index
GET /login Auth.Login
POST /doLogin Auth.DoLogin
GET /logout Auth.Logout
Get /demo Auth.Demo
Get /register Auth.Register
POST /doRegister Auth.DoRegister
GET /findPassword/:token Auth.FindPassword2
GET /findPassword Auth.FindPassword
POST /doFindPassword Auth.DoFindPassword
POST /findPasswordUpdate Auth.FindPasswordUpdate
#####
# 这么多列表, 只是为了最后一句pjax
# note
* /note/listNotes Note.ListNotes
* /note/listTrashNotes Note.ListTrashNotes
* /note/getNoteAndContent Note.GetNoteAndContent
* /note/getNoteContent Note.GetNoteContent
* /note/updateNoteOrContent Note.UpdateNoteOrContent
* /note/deleteNote Note.DeleteNote
* /note/deleteTrash Note.DeleteTrash
* /note/moveNote Note.MoveNote
* /note/copyNote Note.CopyNote
* /note/copySharedNote Note.CopySharedNote
* /note/searchNoteByTags Note.SearchNoteByTags
* /note/setNote2Blog Note.SetNote2Blog
* /note/exportPdf Note.ExportPDF
* /note/toPdf Note.ToPdf
* /note/getNoteAndContentBySrc Note.GetNoteAndContentBySrc
# pjax
GET /note/:noteId Note.Index
# blog
GET /blog/getLikesAndComments Blog.GetLikesAndComments
GET /blog/getLikes Blog.GetLikes
* /blog/incReadNum Blog.IncReadNum
* /blog/likePost Blog.LikePost
* /blog/likeComment Blog.LikeComment
* /blog/deleteComment Blog.DeleteComment
GET /blog/getComments Blog.GetComments
* /blog/commentPost Blog.CommentPost
GET /blog/getPostStat Blog.GetPostStat
GET /blog/tags/:userIdOrEmail Blog.Tags
GET /blog/tags Blog.Tags
GET /blog/tag/:userIdOrEmail/:tag Blog.Tag
GET /blog/tag/:tag Blog.Tag
GET /blog/search/:userIdOrEmail Blog.Search
GET /blog/search Blog.Search
GET /blog/archives/:userIdOrEmail Blog.Archives
GET /blog/archives Blog.Archives
GET /blog/post/:noteId Blog.Post
GET /blog/post/:userIdOrEmail/:noteId Blog.Post
GET /blog/view/:noteId Blog.Post
GET /blog/single/:userIdOrEmail/:singleId Blog.Single
GET /blog/single/:singleId Blog.Single
GET /blog/cate/:notebookId Blog.Cate
GET /blog/cate/:userIdOrEmail/:notebookId Blog.Cate
GET /blog/listCateLatest/:notebookId Blog.ListCateLatest
GET /blog/:userIdOrEmail Blog.Index
GET /blog Blog.Index
GET /blog/* Blog.E()
#---------------
# preview
GET /preview/tags/:userIdOrEmail Preview.Tags
GET /preview/tags Preview.Tags
GET /preview/tag/:userIdOrEmail/:tag Preview.Tag
GET /preview/tag/:tag Preview.Tag
GET /preview/search/:userIdOrEmail Preview.Search
GET /preview/search Preview.Search
GET /preview/archives/:userIdOrEmail Preview.Archives
GET /preview/archives Preview.Archives
GET /preview/view/:noteId Preview.Post
GET /preview/post/:noteId Preview.Post
GET /preview/post/:userIdOrEmail/:noteId Preview.Post
GET /preview/single/:userIdOrEmail/:singleId Preview.Single
GET /preview/single/:singleId Preview.Single
GET /preview/cate/:notebookId Preview.Cate
GET /preview/cate/:userIdOrEmail/:notebookId Preview.Cate
GET /preview/:userIdOrEmail Preview.Index
GET /preview Preview.Index
# Map static resources from the /app/public folder to the /public path
GET /favicon.ico Static.Serve("public/images/favicon.ico")
GET /public/*filepath Static.Serve("public")
GET /js/*filepath Static.Serve("public/js")
GET /images/*filepath Static.Serve("public/images")
GET /img/*filepath Static.Serve("public/img")
GET /css/*filepath Static.Serve("public/css")
GET /fonts/*filepath Static.Serve("public/fonts")
GET /tinymce/*filepath Static.Serve("public/tinymce")
#GET /plugins/*filepath Static.Serve("public/tinymce/plugins")
GET /upload/*filepath Static.Serve("public/upload")
# member
# the prefix of member's controllername is "Member"
* /member MemberIndex.Index
* /member/index MemberIndex.Index
# 不知道为什么, group就是不行 member/blog可以
* /member/group/index MemberGroup.Index
* /member/group/addGroup MemberGroup.AddGroup
* /member/group/updateGroupTitle MemberGroup.UpdateGroupTitle
* /member/group/deleteGroup MemberGroup.DeleteGroup
* /member/group/addUser MemberGroup.AddUser
* /member/group/deleteUser MemberGroup.DeleteUser
# common
* /:controller/:action :controller.:action
* /api/:controller/:action :controller.:action
* /member/:controller/:action :controller.:action