Skip to content

Commit 1cb4a4b

Browse files
committed
Add support for more distribution types in the API
1 parent 3f299a9 commit 1cb4a4b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/Controller/ApiController.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function packageMetadata(Request $request): Response
115115
'version' => Requirement::CATCH_ALL,
116116
'revision' => Requirement::POSITIVE_INT,
117117
'reference' => '[a-z0-9]+',
118-
'type' => '(zip)',
118+
'type' => '(zip|tar|rar|7z|xz|gzip|phar)',
119119
],
120120
methods: ['GET'],
121121
)]
@@ -163,7 +163,7 @@ public function packageDistribution(Request $request, int $revision, string $ref
163163
'package' => MapPackage::PACKAGE_REGEX,
164164
'version' => Requirement::CATCH_ALL,
165165
'reference' => '[a-z0-9]+',
166-
'type' => '(zip)',
166+
'type' => '(zip|tar|rar|7z|xz|gzip|phar)',
167167
],
168168
methods: ['GET'],
169169
)]

0 commit comments

Comments
 (0)