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) {