1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add routers for create and delete repo

This commit is contained in:
Unknown
2014-02-19 21:45:43 -05:00
parent d4728fafaf
commit 8962b39648
6 changed files with 91 additions and 1 deletions

3
web.go
View File

@@ -14,6 +14,7 @@ import (
"github.com/martini-contrib/render"
"github.com/gogits/gogs/routers"
"github.com/gogits/gogs/routers/repo"
"github.com/gogits/gogs/routers/user"
"github.com/gogits/gogs/utils"
"github.com/gogits/gogs/utils/log"
@@ -50,6 +51,8 @@ func runWeb(*cli.Context) {
m.Get("/user/signin", user.SignIn)
m.Any("/user/signup", user.SignUp)
m.Any("/user/delete", user.Delete)
m.Any("/repo/create", repo.Create)
m.Any("/repo/delete", repo.Delete)
listenAddr := fmt.Sprintf("%s:%s",
utils.Cfg.MustValue("server", "HTTP_ADDR"),