can now import repos and have more settings for creating new ones.
This commit is contained in:
@@ -103,6 +103,7 @@ func New(cfg *config.Config, engine *xorm.Engine, store sessions.Store, staticFi
|
||||
r.Route("/repos", func(r chi.Router) {
|
||||
r.Get("/", repoH.List)
|
||||
r.With(csrf).Post("/", repoH.Create)
|
||||
r.With(csrf).Post("/import", repoH.Import)
|
||||
r.Route("/{owner}/{repo}", func(r chi.Router) {
|
||||
r.Get("/", repoH.Get)
|
||||
r.With(csrf).Patch("/", repoH.Update)
|
||||
|
||||
Reference in New Issue
Block a user