conf
This commit is contained in:
@ -2,16 +2,16 @@
|
||||
# leanote config
|
||||
#------------------------
|
||||
|
||||
http.port=80
|
||||
http.port=9000
|
||||
|
||||
site.url=http://localhost # or http://x.com:8080, http://www.xx.com:9000
|
||||
site.url=http://localhost:9000 # or http://x.com:8080, http://www.xx.com:9000
|
||||
|
||||
# mongdb
|
||||
db.host=localhost
|
||||
db.port=27017
|
||||
db.dbname=leanote # required
|
||||
db.username=root # if not exists, please leave it blank
|
||||
db.password=root123 # if not exists, please leave it blank
|
||||
db.username= # if not exists, please leave it blank
|
||||
db.password= # if not exists, please leave it blank
|
||||
# or you can set the mongdb url for more complex needs the format is:
|
||||
# mongodb://myuser:mypass@localhost:40001,otherhost:40001/mydb
|
||||
# db.url=mongodb://root:root123@localhost:27017/leanote
|
@ -23,6 +23,26 @@ 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
|
||||
* /note/exportPdf Note.ExportPDF
|
||||
* /note/setNote2Blog Note.SetNote2Blog
|
||||
# pjax
|
||||
GET /note/:noteId Note.Index
|
||||
|
||||
# blog
|
||||
|
||||
@ -113,4 +133,4 @@ GET /upload/*filepath Static.Serve("public/upload")
|
||||
# common
|
||||
* /:controller/:action :controller.:action
|
||||
* /api/:controller/:action :controller.:action
|
||||
* /member/:controller/:action :controller.:action
|
||||
* /member/:controller/:action :controller.:action
|
Reference in New Issue
Block a user