create-prisma-php-app 1.21.2 → 1.21.3

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.
@@ -672,7 +672,7 @@ try {
672
672
  }
673
673
 
674
674
  $filePath = APP_PATH . '/' . $uri;
675
- if (file_exists($filePath)) {
675
+ if (file_exists($filePath) && (!$_fileToInclude === 'route.php' || !$_fileToInclude === 'index.php')) {
676
676
  // Check if the file is a PHP file
677
677
  if (pathinfo($filePath, PATHINFO_EXTENSION) === 'php') {
678
678
  // Include the PHP file without setting the JSON header
@@ -696,7 +696,7 @@ try {
696
696
  }
697
697
  }
698
698
 
699
- if (!empty($_contentToInclude) && basename($_contentToInclude) === 'route.php') {
699
+ if (!empty($_contentToInclude) && $_fileToInclude === 'route.php') {
700
700
  header('Content-Type: application/json');
701
701
  require_once $_contentToInclude;
702
702
  exit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.21.2",
3
+ "version": "1.21.3",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",