1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-03 00:45:22 +02: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"),