create-prisma-php-app 1.8.5 → 1.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,9 +23,9 @@ function determineContentToInclude()
23
23
  $baseDir = __DIR__ . '/src/app';
24
24
  $includePath = '';
25
25
  $metadata = $metadata[$uri] ?? $metadata['default'];
26
-
26
+ writeRoutes();
27
+
27
28
  $isDirectAccessToPrivateRoute = preg_match('/^_/', $uri);
28
-
29
29
  if ($isDirectAccessToPrivateRoute) {
30
30
  return ['path' => $includePath];
31
31
  }
@@ -197,7 +197,6 @@ register_shutdown_function(function () use (&$content) {
197
197
 
198
198
  try {
199
199
  $result = determineContentToInclude();
200
- writeRoutes();
201
200
  checkForDuplicateRoutes();
202
201
  $contentToInclude = $result['path'] ?? '';
203
202
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.8.5",
3
+ "version": "1.8.6",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",