summaryrefslogtreecommitdiffstats
path: root/web.go
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-29 21:16:06 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-29 21:16:06 +0800
commitecce694d77756264864b03e6b06077592ed1676a (patch)
treee5bf86b7be0cacc065e940fb5dfcffac2242b347 /web.go
parent035facc5641e879b693982f6f4ada1d82915da82 (diff)
downloadgitea-ecce694d77756264864b03e6b06077592ed1676a.tar.gz
gitea-ecce694d77756264864b03e6b06077592ed1676a.zip
issue content ajax preview
Diffstat (limited to 'web.go')
-rw-r--r--web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/web.go b/web.go
index 35695f0bfb..451e52ff8c 100644
--- a/web.go
+++ b/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)