feat: add gitlab oauth, cleanup code

This commit is contained in:
2024-11-17 19:49:42 +07:00
parent a6cc450ea7
commit 83d0ed380d
29 changed files with 297 additions and 89 deletions
+1 -2
View File
@@ -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)
+1 -1
View File
@@ -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)