1
0
mirror of https://github.com/bytedream/docker4ssh.git synced 2025-07-08 14:36:20 +02:00
Files
docker4ssh/server/api/info.go
2021-12-19 17:30:51 +01:00

17 lines
312 B
Go

package api
import (
"docker4ssh/ssh"
"net/http"
)
type infoGetResponse struct {
ContainerID string `json:"container_id"`
}
func InfoGet(w http.ResponseWriter, r *http.Request, user *ssh.User) (interface{}, int) {
return infoGetResponse{
ContainerID: user.Container.FullContainerID,
}, http.StatusOK
}