2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

chore: 框架更新的其他调整

This commit is contained in:
耗子
2023-09-11 17:02:14 +08:00
parent f8d874b9d7
commit 25d295f4a1
3 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ func (receiver *RouteServiceProvider) Boot(app foundation.Application) {
receiver.configureRateLimiting()
routes.Web()
routes.Api()
routes.Plugin()
}

View File

@@ -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.

View File

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