Merge pull request #5336 from pouyamiralayi/patch-4

Update frontend-development.md
This commit is contained in:
Jim LAURIE 2020-03-05 16:24:33 +01:00 committed by GitHub
commit abdbb4adb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ $ yarn develop --watch-admin
### Strapi global variable ### 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` #### `strapi.backendURL`
@ -56,7 +56,7 @@ The administration url (e.g. `http://localhost:4000/admin`).
### Main plugin object ### 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: 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. 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`. **Path —** `plugins/my-plugin/admin/src/containers/App/index.js`.