2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00
Files
panel/internal/route/ws.go
2024-10-20 22:14:11 +08:00

18 lines
338 B
Go

package route
import (
"github.com/go-chi/chi/v5"
"github.com/TheTNB/panel/internal/http/middleware"
"github.com/TheTNB/panel/internal/service"
)
func Ws(r chi.Router) {
r.Route("/api/ws", func(r chi.Router) {
r.Use(middleware.MustLogin)
ws := service.NewWsService()
r.Get("/ssh", ws.Session)
r.Get("/exec", ws.Exec)
})
}