From b58a031a698bb674aab58ea5d183e36bf8c4c147 Mon Sep 17 00:00:00 2001 From: Liujian <824010343@qq.com> Date: Mon, 2 Sep 2024 19:32:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=A5=E9=94=99=EF=BC=9Aun?= =?UTF-8?q?defined:=20pm3.CreateRouterSimple?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/frontend.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/frontend.go b/frontend/frontend.go index d7d91afc..fb85f8ce 100644 --- a/frontend/frontend.go +++ b/frontend/frontend.go @@ -81,10 +81,10 @@ func IndexHtml(ginCtx *gin.Context) { func (f *Frontend) Api() []pm3.Api { return []pm3.Api{ - pm3.CreateRouterSimple(http.MethodGet, "/favicon.ico", func(ginCtx *gin.Context) { + pm3.CreateApiSimple(http.MethodGet, "/favicon.ico", func(ginCtx *gin.Context) { ginCtx.Data(http.StatusOK, iconType, iconContent) }), - pm3.CreateRouterSimple(http.MethodGet, "/vite.svg", func(ginCtx *gin.Context) { + pm3.CreateApiSimple(http.MethodGet, "/vite.svg", func(ginCtx *gin.Context) { ginCtx.Data(http.StatusOK, viteContentType, viteContent) }), }