From e4f9b9f90cef2317076be59dd673a4234c674bcd Mon Sep 17 00:00:00 2001 From: xxq250 Date: Mon, 11 Nov 2024 11:24:15 +0800 Subject: [PATCH] =?UTF-8?q?raw=E4=B8=8B=E8=BD=BD=E5=8E=9F=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E9=9C=80=E8=A6=81=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/hat/web/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/hat/web/web.go b/routers/hat/web/web.go index a1be5cb..d25977a 100644 --- a/routers/hat/web/web.go +++ b/routers/hat/web/web.go @@ -1435,7 +1435,7 @@ func registerRoutes(m *web.Route) { m.Get("/blob/{sha}", context.RepoRefByType(context.RepoRefBlob), repo.DownloadByID) // "/*" route is deprecated, and kept for backward compatibility m.Get("/*", context.RepoRefByType(context.RepoRefLegacy), repo.SingleDownload) - }, repo.MustBeNotEmpty, reqRepoCodeReader) + }, reqSignIn, repo.MustBeNotEmpty, reqRepoCodeReader) m.Group("/render", func() { m.Get("/branch/*", context.RepoRefByType(context.RepoRefBranch), repo.RenderFile)