1
1
mirror of https://github.com/go-gitea/gitea synced 2025-09-28 03:28:13 +00:00

database-filesystem, demo log tailing in term

This commit is contained in:
wxiaoguang
2022-08-07 21:26:31 +08:00
committed by Jason Song
parent 931d8c2c21
commit 92d15afd18
8 changed files with 702 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ import (
"code.gitea.io/gitea/modules/web/routing"
"code.gitea.io/gitea/routers/web/admin"
"code.gitea.io/gitea/routers/web/auth"
"code.gitea.io/gitea/routers/web/dev"
"code.gitea.io/gitea/routers/web/events"
"code.gitea.io/gitea/routers/web/explore"
"code.gitea.io/gitea/routers/web/feed"
@@ -659,6 +660,10 @@ func RegisterRoutes(m *web.Route) {
m.Post("/{username}", reqSignIn, context_service.UserAssignmentWeb(), user.Action)
if !setting.IsProd {
m.Any("/dev/termdemo", dev.TermDemo)
}
reqRepoAdmin := context.RequireRepoAdmin()
reqRepoCodeWriter := context.RequireRepoWriter(unit.TypeCode)
canEnableEditor := context.CanEnableEditor()