create-prisma-php-app 1.21.4 → 1.22.0
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/index.js +1 -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
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
window.onload = function () {
|
|
2
|
-
//<editor-fold desc="Changeable Configuration Block">
|
|
3
|
-
|
|
4
|
-
const host = window.location.hostname;
|
|
5
|
-
const port = window.location.port;
|
|
6
|
-
|
|
7
|
-
// Set the URL dynamically based on the environment
|
|
8
|
-
let swaggerUrl;
|
|
9
|
-
|
|
10
|
-
if (host === "localhost") {
|
|
11
|
-
// For local development, handle different possible ports
|
|
12
|
-
swaggerUrl = `http://${host}:${
|
|
13
|
-
port || 3000
|
|
14
|
-
}/swagger-docs/apis/pphp-swagger.json`;
|
|
15
|
-
} else {
|
|
16
|
-
// For production, use the domain without hardcoding the port
|
|
17
|
-
swaggerUrl = `https://${host}/swagger-docs/pphp-swagger.json`;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
window.ui = SwaggerUIBundle({
|
|
21
|
-
url: swaggerUrl,
|
|
22
|
-
dom_id: "#swagger-ui",
|
|
23
|
-
deepLinking: true,
|
|
24
|
-
presets: [SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset],
|
|
25
|
-
plugins: [SwaggerUIBundle.plugins.DownloadUrl],
|
|
26
|
-
layout: "StandaloneLayout",
|
|
27
|
-
|
|
28
|
-
// Add custom header using requestInterceptor
|
|
29
|
-
requestInterceptor: (request) => {
|
|
30
|
-
request.headers["HTTP_PPHP_X_FILE_REQUEST"] = "true"; // Set your custom header here
|
|
31
|
-
return request;
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
//</editor-fold>
|
|
36
|
-
};
|