Moved routes config together, and ensure they are loaded last

This commit is contained in:
Alejandro Celaya
2022-08-04 11:14:26 +02:00
parent fdd3e24967
commit ba517eeeb5
8 changed files with 117 additions and 141 deletions

View File

@@ -71,9 +71,9 @@ class CorsTest extends ApiTestCase
public function providePreflightEndpoints(): iterable
{
yield 'invalid route' => ['/foo/bar', 'GET,POST,PUT,PATCH,DELETE'];
// yield 'invalid route' => ['/foo/bar', 'GET,POST,PUT,PATCH,DELETE']; // TODO This won't work with multi-segment
yield 'short URLs route' => ['/short-urls', 'GET,POST'];
yield 'tags route' => ['/tags', 'GET,PUT,DELETE'];
yield 'tags route' => ['/tags', 'GET,DELETE,PUT'];
yield 'health route' => ['/health', 'GET'];
}
}