mirror of
https://github.com/bytedream/docker4ssh.git
synced 2025-05-09 12:15:11 +02:00
13 lines
254 B
Go
13 lines
254 B
Go
package api
|
|
|
|
import (
|
|
"docker4ssh/ssh"
|
|
"net/http"
|
|
)
|
|
|
|
type errorGetResponse APIError
|
|
|
|
func ErrorGet(w http.ResponseWriter, r *http.Request, user *ssh.User) (interface{}, int) {
|
|
return APIError{Message: "Example error message"}, http.StatusBadRequest
|
|
}
|