Skip to content

Commit 7b45092

Browse files
author
Gusted
authored
Remove template previewer (#21701)
- Remove "unused" code, I don't think anyone ever used this or was aware of this feature. It doesn't even work properly as most fields/data are empty.
1 parent 57df0f1 commit 7b45092

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

routers/web/dev/template.go

-29
This file was deleted.

routers/web/web.go

-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import (
2828
"code.gitea.io/gitea/modules/web/routing"
2929
"code.gitea.io/gitea/routers/web/admin"
3030
"code.gitea.io/gitea/routers/web/auth"
31-
"code.gitea.io/gitea/routers/web/dev"
3231
"code.gitea.io/gitea/routers/web/events"
3332
"code.gitea.io/gitea/routers/web/explore"
3433
"code.gitea.io/gitea/routers/web/feed"
@@ -619,10 +618,6 @@ func RegisterRoutes(m *web.Route) {
619618

620619
m.Post("/{username}", reqSignIn, context_service.UserAssignmentWeb(), user.Action)
621620

622-
if !setting.IsProd {
623-
m.Get("/template/*", dev.TemplatePreview)
624-
}
625-
626621
reqRepoAdmin := context.RequireRepoAdmin()
627622
reqRepoCodeWriter := context.RequireRepoWriter(unit.TypeCode)
628623
canEnableEditor := context.CanEnableEditor()

0 commit comments

Comments
 (0)