Skip to content

Commit 7f3def7

Browse files
committed
chore: formatting
1 parent 66823a1 commit 7f3def7

File tree

2 files changed

+7
-22
lines changed

2 files changed

+7
-22
lines changed

extensions/storage-image-processing-api/POSTINSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const operations = [
2424
2. Stringify and encode the list:
2525

2626
```js
27-
encodeURIComponent(JSON.stringify(operations))
27+
encodeURIComponent(JSON.stringify(operations));
2828
```
2929

3030
3. Call the deployed `process` Cloud Function:

extensions/storage-image-processing-api/README.md

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
**Description**: Use this extension to optimize and transform images via a powerful HTTP API with over 30 different image operations to enhance and manipulate your images.
66

7-
8-
97
**Details**: Use this extension to optimize and transform images via a powerful HTTP API with over 30 different image operations to enhance and manipulate your images.
108

119
This extension creates a Cloud Function named `process`, which can be called via a GET request, specifiying
@@ -45,37 +43,24 @@ To install an extension, your project must be on the [Blaze (pay as you go) plan
4543
- Cloud Storage
4644
- Cloud Functions (Node.js 10+ runtime. [See FAQs](https://firebase.google.com/support/faq#extensions-pricing))
4745

48-
49-
50-
5146
**Configuration Parameters:**
5247

53-
* Cloud Functions location: Where do you want to deploy the functions created for this extension? You usually want a location close to your Storage bucket. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
54-
55-
* Cloud Storage bucket for images: The Cloud Storage bucket where images that are to be processed are located. API requests with input urls or paths that are not inside this bucket will be dropped.
56-
57-
58-
* Allowed CORS origins.: A comma delimited value of allowed CORS origins. Use the default of '*' to allow all origins. This is useful to lockdown your API and only allow your own website to embed the images directly. Note this will not prevent non-browser requests from accessing your API.
59-
48+
- Cloud Functions location: Where do you want to deploy the functions created for this extension? You usually want a location close to your Storage bucket. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
6049

50+
- Cloud Storage bucket for images: The Cloud Storage bucket where images that are to be processed are located. API requests with input urls or paths that are not inside this bucket will be dropped.
6151

52+
- Allowed CORS origins.: A comma delimited value of allowed CORS origins. Use the default of '\*' to allow all origins. This is useful to lockdown your API and only allow your own website to embed the images directly. Note this will not prevent non-browser requests from accessing your API.
6253

6354
**Cloud Functions:**
6455

65-
* **handler:** Serves a API accepting incoming HTTP requests.
66-
67-
56+
- **handler:** Serves a API accepting incoming HTTP requests.
6857

6958
**APIs Used**:
7059

71-
* storage-component.googleapis.com (Reason: Needed to use Cloud Storage)
72-
73-
60+
- storage-component.googleapis.com (Reason: Needed to use Cloud Storage)
7461

7562
**Access Required**:
7663

77-
78-
7964
This extension will operate with the following project IAM roles:
8065

81-
* storage.admin (Reason: Allows the extension to read images in Cloud Storage)
66+
- storage.admin (Reason: Allows the extension to read images in Cloud Storage)

0 commit comments

Comments
 (0)