This commit is contained in:
life
2015-03-31 14:39:03 +08:00
parent e47dc0dc18
commit 9aacba4c31
3 changed files with 25 additions and 7 deletions

2
.gitignore vendored
View File

@ -8,8 +8,6 @@ bin/release
bin/tmp bin/tmp
bin/test bin/test
bin/src bin/src
conf/app.conf
conf/routes
public/upload public/upload
app/routes/routes.go app/routes/routes.go
app/tmp/main.go app/tmp/main.go

View File

@ -2,16 +2,16 @@
# leanote config # 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 # mongdb
db.host=localhost db.host=localhost
db.port=27017 db.port=27017
db.dbname=leanote # required db.dbname=leanote # required
db.username=root # if not exists, please leave it blank db.username= # if not exists, please leave it blank
db.password=root123 # 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: # or you can set the mongdb url for more complex needs the format is:
# mongodb://myuser:mypass@localhost:40001,otherhost:40001/mydb # mongodb://myuser:mypass@localhost:40001,otherhost:40001/mydb
# db.url=mongodb://root:root123@localhost:27017/leanote # db.url=mongodb://root:root123@localhost:27017/leanote

View File

@ -23,6 +23,26 @@ GET /findPassword Auth.FindPassword
POST /doFindPassword Auth.DoFindPassword POST /doFindPassword Auth.DoFindPassword
POST /findPasswordUpdate Auth.FindPasswordUpdate 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 # blog
@ -113,4 +133,4 @@ GET /upload/*filepath Static.Serve("public/upload")
# common # common
* /:controller/:action :controller.:action * /:controller/:action :controller.:action
* /api/:controller/:action :controller.:action * /api/:controller/:action :controller.:action
* /member/:controller/:action :controller.:action * /member/:controller/:action :controller.:action