mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 09:13:49 +08:00
chore: 框架更新的其他调整
This commit is contained in:
@@ -20,7 +20,7 @@ func (receiver *RouteServiceProvider) Boot(app foundation.Application) {
|
||||
|
||||
receiver.configureRateLimiting()
|
||||
|
||||
routes.Web()
|
||||
routes.Api()
|
||||
routes.Plugin()
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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) {
|
||||
Reference in New Issue
Block a user