Refactor: Rename NanoKVM to BatchuKVM and update server URL
This commit is contained in:
15
server/router/ws.go
Normal file
15
server/router/ws.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
"NanoKVM-Server/middleware"
|
||||
"NanoKVM-Server/service/ws"
|
||||
)
|
||||
|
||||
func wsRouter(r *gin.Engine) {
|
||||
service := ws.NewService()
|
||||
api := r.Group("/api").Use(middleware.CheckToken())
|
||||
|
||||
api.GET("/ws", service.Connect)
|
||||
}
|
||||
Reference in New Issue
Block a user