Commit f80d9802 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[TASK] Add endpoint for retrieving the composer map

parent f9403b40
Pipeline #10556 passed with stages
in 5 minutes and 35 seconds
......@@ -25,6 +25,11 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
*/
class ComposerizeController
{
public function createExtensionComposerMapAction(ServerRequestInterface $request): ResponseInterface
{
return new JsonResponse($this->getExtensionComposerMap(), 200);
}
public function createComposerManifestAction(ServerRequestInterface $request): ResponseInterface
{
$extensionKey = $request->getAttribute('routeResult')['key'] ?? '';
......
......@@ -30,6 +30,7 @@ class ComposerizeEndpoint implements MiddlewareInterface
{
protected string $base = '/composerize';
protected array $routes = [
'createExtensionComposerMap' => ['endpoint' => '', 'method' => 'GET'],
'createComposerManifest' => ['endpoint' => '/{key}', 'method' => 'POST']
];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment