Merge branch 'master' into fix/boom-middleware

This commit is contained in:
Alexandre BODIN 2020-03-05 19:15:34 +01:00 committed by GitHub
commit f7530da383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -17,7 +17,7 @@ $ yarn develop --watch-admin
### Strapi global variable
The administration exposes a global variable thqt is accessible for all the plugins.
The administration exposes a global variable that is accessible for all the plugins.
#### `strapi.backendURL`
@ -56,7 +56,7 @@ The administration url (e.g. `http://localhost:4000/admin`).
### Main plugin object
Each plugin exports all its configurations in a object. This object is located in `my-plugin/admin/src/index.js`
Each plugin exports all its configurations in an object. This object is located in `my-plugin/admin/src/index.js`
Here are its properties:
@ -169,7 +169,7 @@ Each route defined in a plugin must be prefixed by the plugin's id.
Let's say that you want to create a route `/user` with params `/:id` associated with the container UserPage.
The declaration would be as followed :
The declaration would be as follows :
**Path —** `plugins/my-plugin/admin/src/containers/App/index.js`.

View File

@ -290,6 +290,10 @@ If the provider is not in the mono repo, you probably don't need `@beta` dependi
Then, visit [http://localhost:1337/admin/plugins/upload/configurations/development](http://localhost:1337/admin/plugins/upload/configurations/development) on your web browser and configure the provider.
::: tip
Some providers may have additional settings such as the AWS S3 needs an API endpoint URL. You can find a list of these for AWS [here](https://docs.aws.amazon.com/general/latest/gr/ses.html)
:::
## Create providers
If you want to create your own, make sure the name starts with `strapi-provider-upload-` (duplicating an existing one will be easier to create), modify the `auth` config object and customize the `upload` and `delete` functions.