mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Update Flex endpoint
This commit is contained in:
@@ -26,7 +26,20 @@
|
||||
"api-platform-admin",
|
||||
"react-admin"
|
||||
],
|
||||
"post-install-output": " * Your admin is almost ready:\n 1. Install the JavaScript dependencies by running <comment>yarn add @api-platform/admin @babel/preset-react</comment>\n 2. Edit <comment>webpack.config.js</comment> and <info>uncomment</info> the following lines:\n\n Encore\n // ...\n .enableReactPreset()\n .addEntry('admin', './assets/js/admin.js')\n\n * Mark entities you want in the admin with the <comment>@ApiResource</comment> annotation, it appears in the admin!\n\n * Using MakerBundle? Try <info>php bin/console make:entity --api-resource</info>\n"
|
||||
"post-install-output": [
|
||||
" * Your admin is almost ready:",
|
||||
" 1. Install the JavaScript dependencies by running <comment>yarn add @api-platform/admin @babel/preset-react</comment>",
|
||||
" 2. Edit <comment>webpack.config.js</comment> and <info>uncomment</info> the following lines:",
|
||||
"",
|
||||
" Encore",
|
||||
" // ...",
|
||||
" .enableReactPreset()",
|
||||
" .addEntry('admin', './assets/js/admin.js')",
|
||||
"",
|
||||
" * Mark entities you want in the admin with the <comment>@ApiResource</comment> annotation, it appears in the admin!",
|
||||
"",
|
||||
" * Using MakerBundle? Try <info>php bin/console make:entity --api-resource</info>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"templates/admin.html.twig": {
|
||||
|
||||
Reference in New Issue
Block a user