Refactor API endpoints to use /api/dashboard instead of /api/console

- Updated all relevant API functions in agent.ts, company.ts, customer-contact.ts, customer.ts, dashboard.ts, ticket-config.ts, and ticket.ts to point to the new /api/dashboard paths.
- Ensured that all request methods and payload structures remain unchanged to maintain existing functionality.
This commit is contained in:
mlogclub
2026-04-15 17:12:30 +08:00
parent 734c83fd58
commit 62416baabc
43 changed files with 375 additions and 375 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/mlogclub/simple/web"
)
func ConsoleWsMiddleware(ctx iris.Context) {
func DashboardWsMiddleware(ctx iris.Context) {
principal := services.AuthService.GetAuthPrincipal(ctx)
if principal == nil {
if _, err := services.AuthService.Authenticate(ctx); err != nil {