mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +00:00
fix bug when push a branch name with / & fix an integration test bug (#1689)
This commit is contained in:
parent
79494047b0
commit
2bb8b3a562
4 changed files with 53 additions and 7 deletions
|
@ -42,6 +42,6 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||
m.Group("/", func() {
|
||||
m.Post("/ssh/:id/update", UpdatePublicKey)
|
||||
m.Post("/push/update", PushUpdate)
|
||||
m.Get("/branch/:id/:branch", GetProtectedBranchBy)
|
||||
m.Get("/branch/:id/*", GetProtectedBranchBy)
|
||||
}, CheckInternalToken)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue