Changed delete endpoint to /delete
This commit is contained in:
parent
c760e6a224
commit
393013a507
|
|
@ -525,7 +525,7 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
m.Post("/watch", repo.IssueWatch)
|
||||
m.Group("/dependency", func() {
|
||||
m.Post("/add", repo.AddDependency)
|
||||
m.Post("/remove", repo.RemoveDependency)
|
||||
m.Post("/delete", repo.RemoveDependency)
|
||||
})
|
||||
m.Combo("/comments").Post(bindIgnErr(auth.CreateCommentForm{}), repo.NewComment)
|
||||
m.Group("/times", func() {
|
||||
|
|
|
|||
|
|
@ -358,7 +358,7 @@
|
|||
{{.i18n.Tr "repo.issues.dependency.remove_header"}}
|
||||
</div>
|
||||
<div class="content">
|
||||
<form method="POST" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/dependency/remove" id="removeDependencyForm">
|
||||
<form method="POST" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/dependency/delete" id="removeDependencyForm">
|
||||
{{$.CsrfTokenHtml}}
|
||||
<input type="hidden" value="" name="removeDependencyID" id="removeDependencyID"/>
|
||||
<input type="hidden" value="" name="dependencyType" id="dependencyType"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user