mirror of
https://github.com/khairul169/vaulterm.git
synced 2026-09-15 17:03:30 +07:00
feat: add gitlab oauth, cleanup code
This commit is contained in:
@@ -5,13 +5,12 @@ import (
|
||||
"rul.sh/vaulterm/server/app/hosts"
|
||||
"rul.sh/vaulterm/server/lib"
|
||||
"rul.sh/vaulterm/server/models"
|
||||
"rul.sh/vaulterm/server/utils"
|
||||
)
|
||||
|
||||
func HandleStats(c *websocket.Conn) {
|
||||
hostId := c.Query("hostId")
|
||||
|
||||
user := utils.GetUserWs(c)
|
||||
user := lib.GetUserWs(c)
|
||||
hostRepo := hosts.NewRepository(&hosts.Hosts{User: user})
|
||||
data, _ := hostRepo.GetWithKeys(hostId)
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
func HandleTerm(c *websocket.Conn) {
|
||||
hostId := c.Query("hostId")
|
||||
|
||||
user := utils.GetUserWs(c)
|
||||
user := lib.GetUserWs(c)
|
||||
hostRepo := hosts.NewRepository(&hosts.Hosts{User: user})
|
||||
data, err := hostRepo.GetWithKeys(hostId)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user