v1.0 fixed

This commit is contained in:
life
2014-10-23 10:03:19 +08:00
parent 0ea4843cac
commit 1f51f6cc9b
12 changed files with 76 additions and 70 deletions

View File

@ -6,9 +6,6 @@ http.port=80
site.url=http://localhost # or http://x.com:8080, http://www.xx.com:9000
# the administrator username
adminUsername=admin
# mongdb
db.host=localhost
db.port=27017

View File

@ -1,55 +0,0 @@
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
module:testrunner
# Home is My Blog
Get / Blog.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
# mobile
GET /mobile Mobile.Index
# blog
# /blog/view/:noteId必须要放在/blog/:userId...之前
GET /blog/searchBlog/:userId Blog.SearchBlog
GET /blog/set Blog.Set
GET /blog/aboutMe/:userId Blog.AboutMe
POST /blog/setUserBlogBase Blog.SetUserBlogBase
POST /blog/setUserBlogComment Blog.SetUserBlogComment
POST /blog/setUserBlogStyle Blog.SetUserBlogStyle
GET /blog/view/:noteId Blog.View
GET /blog/:userId Blog.Index
GET /blog/:userId/:notebookId Blog.Index
GET /blog Blog.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")
# common
* /:controller/:action :controller.:action