aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorThibault Meyer <0xbaadf00d@users.noreply.github.com>2016-08-30 04:02:49 +0200
committer无闻 <u@gogs.io>2016-08-29 19:02:49 -0700
commit92fb30c5260cc067da28ae3cd031b76f7b7976db (patch)
tree50855703a1044069861620ca32f98e812627ea59 /cmd/web.go
parent9f44c267899fabd0b180cdf6cd41e6d77b2fb423 (diff)
downloadgitea-92fb30c5260cc067da28ae3cd031b76f7b7976db.tar.gz
gitea-92fb30c5260cc067da28ae3cd031b76f7b7976db.zip
Load a set of predefined labels (#3459)
* Can use a predefined set of labels * Change UI * Fix HTML file indentation * Avoid reading file from other directory (security issue) * Apply a better fix * Remove not used variable * Merge upstream/develop * Do modifications * Raname * remove binding + rename variable
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index df7e970afd..ffd4ac91b7 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -477,6 +477,7 @@ func runWeb(ctx *cli.Context) error {
m.Post("/new", bindIgnErr(auth.CreateLabelForm{}), repo.NewLabel)
m.Post("/edit", bindIgnErr(auth.CreateLabelForm{}), repo.UpdateLabel)
m.Post("/delete", repo.DeleteLabel)
+ m.Post("/initialize", bindIgnErr(auth.InitializeLabelsForm{}), repo.InitializeLabels)
}, repo.MustEnableIssues, reqRepoWriter, context.RepoRef())
m.Group("/milestones", func() {
m.Combo("/new").Get(repo.NewMilestone).