issue content ajax preview

This commit is contained in:
FuXiaoHei 2014-03-29 21:16:06 +08:00
parent 035facc564
commit ecce694d77
5 changed files with 67 additions and 28 deletions

1
web.go
View file

@ -95,6 +95,7 @@ func runWeb(*cli.Context) {
m.Get("/pulls", reqSignIn, user.Pulls)
m.Get("/stars", reqSignIn, user.Stars)
m.Get("/help", routers.Help)
m.Post("/preview", routers.Preview)
avt := avatar.CacheServer("public/img/avatar/", "public/img/avatar_default.jpg")
m.Get("/avatar/:hash", avt.ServeHTTP)