
Conflicts: app/init.go app/service/UserService.go conf/app.conf conf/routes mongodb_backup/leanote_install_data/albums.metadata.json mongodb_backup/leanote_install_data/attachs.metadata.json mongodb_backup/leanote_install_data/blog_comments.metadata.json mongodb_backup/leanote_install_data/blog_likes.metadata.json mongodb_backup/leanote_install_data/blog_singles.metadata.json mongodb_backup/leanote_install_data/configs.bson mongodb_backup/leanote_install_data/configs.metadata.json mongodb_backup/leanote_install_data/email_logs.metadata.json mongodb_backup/leanote_install_data/files.metadata.json mongodb_backup/leanote_install_data/find_pwds.metadata.json mongodb_backup/leanote_install_data/group_users.metadata.json mongodb_backup/leanote_install_data/groups.metadata.json mongodb_backup/leanote_install_data/has_share_notes.metadata.json mongodb_backup/leanote_install_data/leanote.ShareNotes.metadata.json mongodb_backup/leanote_install_data/leanote.has_share_notes.metadata.jso n mongodb_backup/leanote_install_data/note_content_histories.metadata.json mongodb_backup/leanote_install_data/note_contents.metadata.json mongodb_backup/leanote_install_data/note_images.metadata.json mongodb_backup/leanote_install_data/notebooks.bson mongodb_backup/leanote_install_data/notebooks.metadata.json mongodb_backup/leanote_install_data/notes.bson mongodb_backup/leanote_install_data/notes.metadata.json mongodb_backup/leanote_install_data/reports.metadata.json mongodb_backup/leanote_install_data/sessions.metadata.json mongodb_backup/leanote_install_data/share_notebooks.metadata.json mongodb_backup/leanote_install_data/share_notes.metadata.json mongodb_backup/leanote_install_data/suggestions.metadata.json mongodb_backup/leanote_install_data/system.indexes.bson mongodb_backup/leanote_install_data/tag_count.metadata.json mongodb_backup/leanote_install_data/tags.metadata.json mongodb_backup/leanote_install_data/themes.metadata.json mongodb_backup/leanote_install_data/tokens.metadata.json mongodb_backup/leanote_install_data/user_blogs.metadata.json mongodb_backup/leanote_install_data/users.bson mongodb_backup/leanote_install_data/users.metadata.json public/blog/themes/default/theme.json public/blog/themes/elegant/theme.json public/blog/themes/nav_fixed/theme.json public/images/logo/leanote_icon_blue.jpg public/js/app/note-min.js public/js/app/note.js public/js/app/notebook-min.js public/js/app/notebook.js public/js/app/tag-min.js public/js/app/tag.js public/tinymce/plugins/paste/plugin.dev.js public/tinymce/plugins/spellchecker/plugin.min.js public/tinymce/tinymce.dev.js public/tinymce/tinymce.jquery.dev.js
139 lines
4.7 KiB
Plaintext
139 lines
4.7 KiB
Plaintext
# Routes
|
|
# This file defines all application routes (Higher priority routes first)
|
|
# ~~~~
|
|
|
|
module:testrunner
|
|
|
|
# Home is My Blog
|
|
Get / Index.Index
|
|
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/toImage Note.ToImage
|
|
* /note/html2Image Note.Html2Image
|
|
<<<<<<< HEAD:conf/routes
|
|
=======
|
|
* /note/exportPdf Note.ExportPDF
|
|
>>>>>>> dev-life:conf/routes
|
|
* /note/setNote2Blog Note.SetNote2Blog
|
|
# 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
|
|
|
|
# common
|
|
* /:controller/:action :controller.:action
|
|
* /api/:controller/:action :controller.:action
|
|
* /member/:controller/:action :controller.:action
|