create-prisma-php-app 1.21.3 → 1.21.500
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.
- package/dist/bootstrap.php +13 -11
- package/dist/index.js +1133 -1
- package/package.json +1 -1
- package/dist/src/app/swagger-docs/apis/pphp-swagger.json +0 -259
- package/dist/src/app/swagger-docs/apis/users.js +0 -180
- package/dist/src/app/swagger-docs/dist/favicon-16x16.png +0 -0
- package/dist/src/app/swagger-docs/dist/favicon-32x32.png +0 -0
- package/dist/src/app/swagger-docs/dist/index.css +0 -16
- package/dist/src/app/swagger-docs/dist/index.html +0 -19
- package/dist/src/app/swagger-docs/dist/oauth2-redirect.html +0 -79
- package/dist/src/app/swagger-docs/dist/swagger-initializer.js +0 -36
- package/dist/src/app/swagger-docs/dist/swagger-ui-bundle.js +0 -2
- package/dist/src/app/swagger-docs/dist/swagger-ui-bundle.js.map +0 -1
- package/dist/src/app/swagger-docs/dist/swagger-ui-es-bundle-core.js +0 -3
- package/dist/src/app/swagger-docs/dist/swagger-ui-es-bundle-core.js.map +0 -1
- package/dist/src/app/swagger-docs/dist/swagger-ui-es-bundle.js +0 -2
- package/dist/src/app/swagger-docs/dist/swagger-ui-es-bundle.js.map +0 -1
- package/dist/src/app/swagger-docs/dist/swagger-ui-standalone-preset.js +0 -2
- package/dist/src/app/swagger-docs/dist/swagger-ui-standalone-preset.js.map +0 -1
- package/dist/src/app/swagger-docs/dist/swagger-ui.css +0 -3
- package/dist/src/app/swagger-docs/dist/swagger-ui.css.map +0 -1
- package/dist/src/app/swagger-docs/dist/swagger-ui.js +0 -2
- package/dist/src/app/swagger-docs/dist/swagger-ui.js.map +0 -1
- package/dist/swagger-docs-index.php +0 -15
package/dist/bootstrap.php
CHANGED
|
@@ -672,18 +672,20 @@ try {
|
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
$filePath = APP_PATH . '/' . $uri;
|
|
675
|
-
if (
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
675
|
+
if (is_file($filePath)) {
|
|
676
|
+
if (file_exists($filePath)) {
|
|
677
|
+
// Check if the file is a PHP file
|
|
678
|
+
if (pathinfo($filePath, PATHINFO_EXTENSION) === 'php') {
|
|
679
|
+
// Include the PHP file without setting the JSON header
|
|
680
|
+
include $filePath;
|
|
681
|
+
} else {
|
|
682
|
+
// Set the appropriate content-type for non-PHP files if needed
|
|
683
|
+
// and read the content
|
|
684
|
+
header('Content-Type: ' . mime_content_type($filePath)); // Dynamic content type
|
|
685
|
+
readfile($filePath);
|
|
686
|
+
}
|
|
687
|
+
exit;
|
|
685
688
|
}
|
|
686
|
-
exit;
|
|
687
689
|
} else if ($_prismaPHPSettings['backendOnly']) {
|
|
688
690
|
// Set the header and output a JSON response for file not found
|
|
689
691
|
header('Content-Type: application/json');
|