17 lines
324 B
Go
17 lines
324 B
Go
package sresponse
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"git.sendico.io/tech/sxchnge/shared/http/response"
|
|
"git.sendico.io/tech/sxchnge/shared/logging"
|
|
)
|
|
|
|
type fileUploaded struct {
|
|
URL string `json:"url"`
|
|
}
|
|
|
|
func FileUploaded(logger mlogger.Logger, url string) http.HandlerFunc {
|
|
return response.Ok(logger, &fileUploaded{URL: url})
|
|
}
|