|
| string | name = "api:image:serve" |
| |
| bool | requires_auth = False |
| |
| string | url = "/api/image/serve/{image_id}/{filename}" |
| |
View to download images.
Definition at line 184 of file __init__.py.
◆ __init__()
| None homeassistant.components.image_upload.ImageServeView.__init__ |
( |
|
self, |
|
|
pathlib.Path |
image_folder, |
|
|
ImageStorageCollection |
image_collection |
|
) |
| |
Initialize image serve view.
Definition at line 191 of file __init__.py.
◆ get()
| web.FileResponse homeassistant.components.image_upload.ImageServeView.get |
( |
|
self, |
|
|
web.Request |
request, |
|
|
str |
image_id, |
|
|
str |
filename |
|
) |
| |
◆ image_collection
| homeassistant.components.image_upload.ImageServeView.image_collection |
◆ image_folder
| homeassistant.components.image_upload.ImageServeView.image_folder |
◆ name
| string homeassistant.components.image_upload.ImageServeView.name = "api:image:serve" |
|
static |
◆ requires_auth
| bool homeassistant.components.image_upload.ImageServeView.requires_auth = False |
|
static |
◆ transform_lock
| homeassistant.components.image_upload.ImageServeView.transform_lock |
◆ url
| string homeassistant.components.image_upload.ImageServeView.url = "/api/image/serve/{image_id}/{filename}" |
|
static |
The documentation for this class was generated from the following file: