From 25d295f4a1c28d09710f86e688a5db1639a43e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 11 Sep 2023 17:02:14 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=A1=86=E6=9E=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=9A=84=E5=85=B6=E4=BB=96=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/providers/route_service_provider.go | 2 +- config/jwt.go | 2 +- routes/{web.go => api.go} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename routes/{web.go => api.go} (99%) diff --git a/app/providers/route_service_provider.go b/app/providers/route_service_provider.go index e3e12a6b..95684c30 100644 --- a/app/providers/route_service_provider.go +++ b/app/providers/route_service_provider.go @@ -20,7 +20,7 @@ func (receiver *RouteServiceProvider) Boot(app foundation.Application) { receiver.configureRateLimiting() - routes.Web() + routes.Api() routes.Plugin() } diff --git a/config/jwt.go b/config/jwt.go index e3d6cd10..f4a1031e 100644 --- a/config/jwt.go +++ b/config/jwt.go @@ -32,7 +32,7 @@ func init() { // the original token being created until they must re-authenticate. // Defaults to 2 weeks. // - // You can also set this to null, to yield an infinite refresh time. + // You can also set this to 0, to yield an infinite refresh time. // Some may want this instead of never expiring tokens for e.g. a mobile app. // This is not particularly recommended, so make sure you have appropriate // systems in place to revoke the token if necessary. diff --git a/routes/web.go b/routes/api.go similarity index 99% rename from routes/web.go rename to routes/api.go index 10fa26ec..9dda676a 100644 --- a/routes/web.go +++ b/routes/api.go @@ -9,7 +9,7 @@ import ( "panel/app/http/middleware" ) -func Web() { +func Api() { facades.Route().StaticFile("favicon.ico", "/www/panel/public/favicon.ico") facades.Route().Prefix("api/panel").Group(func(r route.Router) { r.Prefix("info").Group(func(r route.Router) {