mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-06 12:28:08 +08:00
Work on mirror repo
This commit is contained in:
2
web.go
2
web.go
@ -116,7 +116,7 @@ func runWeb(*cli.Context) {
|
||||
m.Get("/user/:username", ignSignIn, user.Profile)
|
||||
|
||||
m.Any("/repo/create", reqSignIn, binding.BindIgnErr(auth.CreateRepoForm{}), repo.Create)
|
||||
m.Any("/repo/import", reqSignIn, binding.BindIgnErr(auth.CreateRepoForm{}), repo.Import)
|
||||
m.Any("/repo/mirror", reqSignIn, binding.BindIgnErr(auth.CreateRepoForm{}), repo.Mirror)
|
||||
|
||||
adminReq := middleware.Toggle(&middleware.ToggleOptions{SignInRequire: true, AdminRequire: true})
|
||||
|
||||
|
Reference in New Issue
Block a user