issue content ajax preview
This commit is contained in:
parent
035facc564
commit
ecce694d77
5 changed files with 67 additions and 28 deletions
1
web.go
1
web.go
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue