Esempio n. 1
0
func (ic image_controller) getImagesLocation(w http.ResponseWriter, r *http.Request, p httprouter.Params) error {
	if !utils.IsValidRequest(r, w) {
		return nil
	}

	return ic.downloadDs.GetImagesLocation(w, r)
}
Esempio n. 2
0
func (ic image_controller) deleteImages(w http.ResponseWriter, r *http.Request, p httprouter.Params) error {
	if !utils.IsValidRequest(r, w) {
		return nil
	}

	return ic.deleteDs.DeleteImages(w, r)
}
Esempio n. 3
0
func (ic image_controller) uploadImage(w http.ResponseWriter, r *http.Request, p httprouter.Params) error {
	if !utils.IsValidRequest(r, w) {
		return nil
	}

	return ic.uploadDs.UploadFile(w, r, p)
}