apollo-backend/internal/api/errors.go
2021-07-13 13:14:25 -04:00

8 lines
181 B
Go

package api
import "net/http"
func (a *api) errorResponse(w http.ResponseWriter, r *http.Request, status int, message string) {
w.WriteHeader(status)
w.Write([]byte(message))
}