From 70d775e0fc497c837a9a33edc08e6d2ecd4b1f13 Mon Sep 17 00:00:00 2001 From: mountain Date: Wed, 28 Jun 2023 15:28:01 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=84=9C=EB=B9=84?= =?UTF-8?q?=EC=8A=A4=20=EA=B2=BD=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/maingate.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/maingate.go b/core/maingate.go index e176a8b..e57657f 100644 --- a/core/maingate.go +++ b/core/maingate.go @@ -533,11 +533,11 @@ func (mg *Maingate) RegisterHandlers(ctx context.Context, serveMux *http.ServeMu return err } - fsx := http.FileServer(http.Dir("./console")) - serveMux.Handle(gocommon.MakeHttpHandlerPattern(prefix, "console/"), http.StripPrefix("/console/", fsx)) + cfsx := http.FileServer(http.Dir("console")) + serveMux.Handle(prefix+"/console/", http.StripPrefix(prefix+"/console/", cfsx)) - ssx := http.FileServer(http.Dir("./static")) - serveMux.Handle(gocommon.MakeHttpHandlerPattern(prefix, "static/"), http.StripPrefix("/static/", ssx)) + staticfs := http.FileServer(http.Dir("static")) + serveMux.Handle(prefix+"/static/", http.StripPrefix(prefix+"/static/", staticfs)) serveMux.HandleFunc(gocommon.MakeHttpHandlerPattern(prefix, "request_login_url", AuthPlatformGoogle), mg.platform_google_get_login_url) serveMux.HandleFunc(gocommon.MakeHttpHandlerPattern(prefix, "authorize", AuthPlatformGoogle), mg.platform_google_authorize)