File tree Expand file tree Collapse file tree 15 files changed +172
-105
lines changed
Bundle/Resources/config/routing Expand file tree Collapse file tree 15 files changed +172
-105
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of the API Platform project.
5+ *
6+ * (c) Kévin Dunglas <dunglas@gmail.com>
7+ *
8+ * For the full copyright and license information, please view the LICENSE
9+ * file that was distributed with this source code.
10+ */
11+
12+ declare (strict_types=1 );
13+
14+ namespace Symfony \Component \Routing \Loader \Configurator ;
15+
16+ return function (RoutingConfigurator $ routes ) {
17+ $ routes ->add ('api_entrypoint ' , '/{index}.{_format} ' )
18+ ->controller ('api_platform.action.entrypoint ' )
19+ ->methods (['GET ' , 'HEAD ' ])
20+ ->defaults ([
21+ '_format ' => null ,
22+ '_api_respond ' => true ,
23+ 'index ' => 'index ' ,
24+ ])
25+ ->requirements ([
26+ 'index ' => 'index ' ,
27+ ]);
28+ };
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of the API Platform project.
5+ *
6+ * (c) Kévin Dunglas <dunglas@gmail.com>
7+ *
8+ * For the full copyright and license information, please view the LICENSE
9+ * file that was distributed with this source code.
10+ */
11+
12+ declare (strict_types=1 );
13+
14+ namespace Symfony \Component \Routing \Loader \Configurator ;
15+
16+ return function (RoutingConfigurator $ routes ) {
17+ $ routes ->add ('api_doc ' , '/docs.{_format} ' )
18+ ->controller ('api_platform.action.documentation ' )
19+ ->methods (['GET ' , 'HEAD ' ])
20+ ->defaults ([
21+ '_format ' => null ,
22+ '_api_respond ' => true ,
23+ ]);
24+ };
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of the API Platform project.
5+ *
6+ * (c) Kévin Dunglas <dunglas@gmail.com>
7+ *
8+ * For the full copyright and license information, please view the LICENSE
9+ * file that was distributed with this source code.
10+ */
11+
12+ declare (strict_types=1 );
13+
14+ namespace Symfony \Component \Routing \Loader \Configurator ;
15+
16+ return function (RoutingConfigurator $ routes ) {
17+ $ routes ->add ('api_validation_errors ' , '/validation_errors/{id} ' )
18+ ->controller ('api_platform.action.not_exposed ' )
19+ ->methods (['GET ' , 'HEAD ' ]);
20+ };
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of the API Platform project.
5+ *
6+ * (c) Kévin Dunglas <dunglas@gmail.com>
7+ *
8+ * For the full copyright and license information, please view the LICENSE
9+ * file that was distributed with this source code.
10+ */
11+
12+ declare (strict_types=1 );
13+
14+ namespace Symfony \Component \Routing \Loader \Configurator ;
15+
16+ return function (RoutingConfigurator $ routes ) {
17+ $ routes ->add ('api_genid ' , '/.well-known/genid/{id} ' )
18+ ->controller ('api_platform.action.not_exposed ' )
19+ ->methods (['GET ' , 'HEAD ' ])
20+ ->defaults ([
21+ '_api_respond ' => true ,
22+ ]);
23+ };
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of the API Platform project.
5+ *
6+ * (c) Kévin Dunglas <dunglas@gmail.com>
7+ *
8+ * For the full copyright and license information, please view the LICENSE
9+ * file that was distributed with this source code.
10+ */
11+
12+ declare (strict_types=1 );
13+
14+ namespace Symfony \Component \Routing \Loader \Configurator ;
15+
16+ return function (RoutingConfigurator $ routes ) {
17+ $ routes ->add ('api_graphql_graphiql ' , '/graphql/graphiql ' )
18+ ->controller ('api_platform.graphql.action.graphiql ' )
19+ ->methods (['GET ' , 'HEAD ' ]);
20+ };
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments