Optimized Issue Dependency Routes

Signed-off-by: Konrad <konrad@kola-entertainments.de>
This commit is contained in:
Konrad Langenberg 2017-10-03 15:05:24 +02:00 committed by Konrad
parent 5e22614248
commit 599f7f8996

View File

@ -486,8 +486,10 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Post("/title", repo.UpdateIssueTitle)
m.Post("/content", repo.UpdateIssueContent)
m.Post("/watch", repo.IssueWatch)
m.Post("/dependency/add", repo.AddDependency)
m.Post("/dependency/remove", repo.RemoveDependency)
m.Group("/dependency", func(){
m.Post("/add", repo.AddDependency)
m.Post("/remove", repo.RemoveDependency)
})
m.Group("/times", func() {
m.Post("/add", bindIgnErr(auth.AddTimeManuallyForm{}), repo.AddTimeManually)
m.Group("/stopwatch", func() {