create-prisma-php-app 1.8.6 → 1.8.8
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/.env +7 -7
- package/dist/bootstrap.php +13 -23
- package/dist/index.js +748 -1
- package/dist/prisma-client-php/index.enc +1 -1
- package/dist/src/Lib/Prisma/Classes/Validator.php +4 -0
- package/dist/src/app/api/api.php +5 -6
- package/package.json +1 -1
package/dist/src/app/api/api.php
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
<?php
|
|
2
2
|
|
|
3
|
-
namespace App\Api;
|
|
4
|
-
|
|
5
|
-
require_once __DIR__ . "/../../../bootstrap.php";
|
|
6
|
-
|
|
7
|
-
use Lib\Prisma\Classes\Prisma;
|
|
8
|
-
|
|
9
3
|
// CORS headers
|
|
10
4
|
header('Access-Control-Allow-Origin: *');
|
|
11
5
|
header('Access-Control-Allow-Methods: POST, OPTIONS');
|
|
@@ -24,6 +18,11 @@ if ($_SERVER["REQUEST_METHOD"] !== "POST" || empty($_SERVER["HTTP_X_REQUESTED_WI
|
|
|
24
18
|
exit;
|
|
25
19
|
}
|
|
26
20
|
|
|
21
|
+
require_once __DIR__ . "/../../../settings/paths.php";
|
|
22
|
+
require_once __DIR__ . "/../../../vendor/autoload.php";
|
|
23
|
+
|
|
24
|
+
use Lib\Prisma\Classes\Prisma;
|
|
25
|
+
|
|
27
26
|
// Initialize variables
|
|
28
27
|
$className = $methodName = $paramsJson = "";
|
|
29
28
|
$params = null;
|