diff options
author | Unknwon <u@gogs.io> | 2017-02-23 11:39:09 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-27 22:45:35 -0500 |
commit | 4f9c5981a923687a803a3711fe33cd211584f36b (patch) | |
tree | 1ebef38e15be164ea34415211cd764c222d8cfee /routers/api/v1/api.go | |
parent | b3757e424ffc47f7ae07d8fecd9f2ecf98f20679 (diff) |
refactoring: modules/auth/*_form.go -> modules/form
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r-- | routers/api/v1/api.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index d883d6c0..df5fb5c3 100644 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -13,8 +13,8 @@ import ( api "github.com/gogits/go-gogs-client" "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/auth" "github.com/gogits/gogs/modules/context" + "github.com/gogits/gogs/modules/form" "github.com/gogits/gogs/routers/api/v1/admin" "github.com/gogits/gogs/routers/api/v1/misc" "github.com/gogits/gogs/routers/api/v1/org" @@ -237,7 +237,7 @@ func RegisterRoutes(m *macaron.Macaron) { }) m.Group("/repos", func() { - m.Post("/migrate", bind(auth.MigrateRepoForm{}), repo.Migrate) + m.Post("/migrate", bind(form.MigrateRepo{}), repo.Migrate) m.Combo("/:username/:reponame").Get(repo.Get). Delete(repo.Delete) |