view logs

This commit is contained in:
wxiaoguang
2022-11-25 17:48:44 +08:00
committed by Jason Song
parent 5f0cb6b9e5
commit 4f2330623e
6 changed files with 336 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
package dev
import (
"net/http"
"code.gitea.io/gitea/modules/context"
)
func BuildView(ctx *context.Context) {
ctx.HTML(http.StatusOK, "dev/buildview")
}
+1 -1
View File
@@ -661,7 +661,7 @@ func RegisterRoutes(m *web.Route) {
m.Post("/{username}", reqSignIn, context_service.UserAssignmentWeb(), user.Action)
if !setting.IsProd {
m.Any("/dev/termdemo", dev.TermDemo)
m.Get("/dev/buildview", dev.BuildView)
}
reqRepoAdmin := context.RequireRepoAdmin()