func buildUploadHandler(host string) http.Handler { backend := mongofs.New(host, "media", "fs") uploadHandler := UploadHandler(backend) return jwtware.New( groupware.New(groupware.DefaultOptions( uploadHandler))) }
func buildDownloadHandler(host string) http.Handler { backend := mongofs.New(host, "media", "fs") return jwtware.New(http.FileServer(backend)) }