mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(templates): introduce templates management (#2017)
This commit is contained in:
parent
e7939a5384
commit
61c285bd2e
63 changed files with 3489 additions and 637 deletions
|
@ -23,10 +23,3 @@ func Empty(rw http.ResponseWriter) *httperror.HandlerError {
|
|||
rw.WriteHeader(http.StatusNoContent)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Bytes write data into rw. It also allows to set the Content-Type header.
|
||||
func Bytes(rw http.ResponseWriter, data []byte, contentType string) *httperror.HandlerError {
|
||||
rw.Header().Set("Content-Type", contentType)
|
||||
rw.Write(data)
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue