mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-21 21:08:45 -04:00
routers: able to migrate repo from local path
- modules/middleware/context.go: add HandleAPI method
This commit is contained in:
parent
c753fdceaf
commit
059338139c
7 changed files with 74 additions and 53 deletions
|
@ -31,7 +31,7 @@ func (f *CreateRepoForm) Validate(ctx *macaron.Context, errs binding.Errors) bin
|
|||
}
|
||||
|
||||
type MigrateRepoForm struct {
|
||||
HttpsUrl string `form:"url" binding:"Required;Url"`
|
||||
CloneAddr string `binding:"Required"`
|
||||
AuthUserName string `form:"auth_username"`
|
||||
AuthPasswd string `form:"auth_password"`
|
||||
Uid int64 `form:"uid" binding:"Required"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue